download files counter... count downloaded only!!
Posted: Mon Nov 06, 2006 5:43 am
Hi,
I decided to make a small counter of downloaded files. never did that before and found kind of a problem (no idea how these kind of counters are made generraly).
The idea is to provide the file for download through php file...so you can increase the counter. Just before giving the file for download ...counter is increased. When save as... dialog appears though, client can choose 'cancel'...so then this file is not really downloaded.
Is it possible to increase counter only when sure download is really made.
I decided to make a small counter of downloaded files. never did that before and found kind of a problem (no idea how these kind of counters are made generraly).
The idea is to provide the file for download through php file...so you can increase the counter. Just before giving the file for download ...counter is increased. When save as... dialog appears though, client can choose 'cancel'...so then this file is not really downloaded.
Is it possible to increase counter only when sure download is really made.