Jump to content
xisto Community
mrdee

How Many Times Was The File Taken? Counting downloads

Recommended Posts

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

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. :lol:

Share this post


Link to post
Share on other sites

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 :lol:

Share this post


Link to post
Share on other sites

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

@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. :lol:
@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. :P

Share this post


Link to post
Share on other sites

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 :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.