Note, this is subject to race attacks, if 10 people all want to download the file at the same time. You'll have to implement locking here.
I've seen a few, but if you want to have a "You're the 'nth' person to download this file" type of interface, you want an ordinal script. If this is just for your own personal needs, that's not necessary. Stay away from the SSI versions, you want to roll this natively into your download script, likely.
http://www.you.com/download.pl?file="file0000.exe"
With this you could also store the incoming IP, host, time, date, and referer of the person downloading it, if you wanted to keep that information (maybe good for charting, graphs, whatever)
How about just parsing your web logs for the downloads instead? No issues with locking, no race attacks, and can be done hourly/nightly, etc. TMTOWTDI.
In reply to Re: Count of downloads from web site.
by hacker
in thread Count of downloads from web site.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |