Jamesiv1 Posted December 12, 2010 Share Posted December 12, 2010 I've searched the forum, and haven't yet found what I need. I have a long list of PDF files: http://www.iampeth.com/vintage_magazines.php How can I track the number of downloads for each file? Link to comment https://forums.phpfreaks.com/topic/221417-how-to-track-the-download-of-pdf-files/ Share on other sites More sharing options...
BlueSkyIS Posted December 12, 2010 Share Posted December 12, 2010 give each PDF a unique id. keep track of the id's in a database along with each PDF file name and number of downloads. update the links to each PDF to use id's instead of the file name. when a user clicks a link, look up the file name for that id, increment the download count for that id, and send the PDF file to the browser. Link to comment https://forums.phpfreaks.com/topic/221417-how-to-track-the-download-of-pdf-files/#findComment-1146309 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.