mrdee 1 Report post Posted April 4, 2008 I was wondering if someone could help me with the following:On my website there is a small file which can be downloaded.I would like to be able to monitor how many times it has been downloaded, the result does not need to appear on the site, it is just for me personally.Has anyone got some code in HTML or PHP which can achieve that?Thanks in advance. Share this post Link to post Share on other sites
serverph 0 Report post Posted April 4, 2008 Ccount - click and download counter http://www.phpjunkyard.com/php-click-counter.php Ccount is a PHP click counter which can also be used as a download counter. With its help you can count clicks on any link on your website. A great tool if you want to know how many times a link has been clicked, a file downloaded ("download counter") and similar. You can also hide your affiliate links with PHP click counter. As long as it's a link - Ccount can count clicks on it! Ccount uses flat-text database so no SQL databases are necessary. I also developed an admin panel, where you can view link statistics: how many times a link has been clicked (both numerical and graphical display of stats), link with most clicks and average clicks per link. You can also easily add, edit, reset or remove links in the admin panel or even display the number of clicks on any web page. Ccount has been tested on servers under Linux and Windows operating systems. It should work on any server with a working PHP installation. and it's FREE too. Share this post Link to post Share on other sites
t3jem 0 Report post Posted April 5, 2008 That's actually pretty sweet, I had thought about this, but I never got unlazy enough to actually make a script for it. Actually what I was thinking of doing was just making a php page that redirected to the file and in the stats just see how many times the page was hit, but this might be better, thanks for the link! And thanks for asking the question I was too lazy to answer Share this post Link to post Share on other sites
mrdee 1 Report post Posted April 5, 2008 Thank you so much for posting this. I will definitely check this out.Does it also work for links that have to be right clicked? The file in question on my web site is a small .txt file, and people have to right click and select "save as".Please also bear in mind that I am not a PHP expert, I am going through the rigorous process of learning it.But thanks ever so much for the link anyway. Share this post Link to post Share on other sites
serverph 0 Report post Posted April 5, 2008 @mrdee: Does it also work for links that have to be right clicked? The file in question on my web site is a small .txt file, and people have to right click and select "save as".sure thing. if you check the page, it has a working example on how the script works. just hover over the sample link provided and you will see that it will access first the click.php script with the corresponding ID of the download concerned, thereby adding to the download count. @t3jem:Actually what I was thinking of doing was just making a php page that redirected to the file and in the stats just see how many times the page was hit, but this might be better, thanks for the link!maybe you can code the script you have in mind, and perhaps it will be an improvement on the above-mentioned script. alternative scripts will always be welcome for some of course. Share this post Link to post Share on other sites
tracdoor 0 Report post Posted April 6, 2008 Thanks for the person that posted that link, it really helped me, the download counter will be a key part in my site ^_^Thank you so much Share this post Link to post Share on other sites