View Full Version : count number of downloads for a file
startbar
09-14-2004, 08:12 PM
hi, how would i go about setting up a counter so i could see how many times a file has been downloaded?
simple in the page as - file.zip (downloaded 100 times)
thanks
oracleguy
09-14-2004, 11:35 PM
The easiest way would be to add another page that you'd pass the information for the file, depeding if you are using a db or not and that page would add to the counter and then it would let the person download the file.
startbar
09-15-2004, 08:26 AM
sorry but do you have any examples? im a bit of a noob
BuddhaMan
09-15-2004, 02:17 PM
Here's a bunch of page hit counters doen in ASP. Now you just need to add the "pass the filename to another page" part and then count the hits on that page. You'd probably need to added code to insert the filename into the database also.
http://www.google.com/search?hl=en&ie=UTF-8&q=asp+download+counter
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.