[thelist] Counting downloads via hyperlink

Chris Dempsey evolt at cubeit.co.uk
Mon Jul 24 11:41:29 CDT 2006

If you can code with PHP you could point the Download PDF link to a page
page which will record the click before showing the link to the file.  You
can record the click either in a database or a text file using the file
system [not sure what the PHP equivalent is but in Classic ASP it's called
the FileSystem Object].


- User browses page with PDF links
- User Clicks Link to get PDF they want
- Link points to counter page and passes unique file ID 
- counter page updates download count for requested file then displays the
real link to the file

Not very gracefully put but think you'll get the idea.


-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Peter Brunone
Sent: 24 July 2006 16:53
To: thelist at lists.evolt.org; thelist at lists.evolt.org
Subject: Re: [thelist] Counting downloads via hyperlink

		   Do you have access to the logs?  If so, it would seem
trivial to parse the log file for the filename and confirm the status (200)
of the request...



				From: "Tom Dell'Aringa"
<pixelmech at gmail.com>

Hi folks,

I have a link to some PDFs people can download. I'd like to easily track how
many times the document is actually downloaded. My web stats can show me
page accesses but not idividual clicks. Does anyone know how I can
accomplish this? This is a wordpress blog so PHP is available.



* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

More information about the thelist mailing list