Download hit counter
Posted 27 May 2006 - 09:00 AM
Posted 27 May 2006 - 11:49 AM
How can I make a downlaod hit counter with PHP? I want to know how many downloads the people do on ym website.
simpliest way is to have a php file, database, and of course the file to be download.
download.php for example, will query database, add 1 to the counter field, then direct using Header to the file to be download.
If you need futher explanation on this method, I'd happy to help.
Posted 27 May 2006 - 06:56 PM
The DB is created and the file is created but now I don't know how to call the download.
Posted 28 May 2006 - 10:37 AM
<?php // Add 1 to counter, dont echo anything header("Location: http://www.site.com/folder/file.extension"); ?>
(Gone until 20 to November)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users