Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How Many Times Was The File Taken?, Counting downloads
mrdee
post Apr 4 2008, 09:30 AM
Post #1


Super Member
*********

Group: [HOSTED]
Posts: 258
Joined: 18-July 07
From: Slough (UK)
Member No.: 46,682



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.
Go to the top of the page
 
+Quote Post
serverph
post Apr 4 2008, 10:04 PM
Post #2


Ancient Enigma
Group Icon

Group: [MODERATOR]
Posts: 1,753
Joined: 11-July 04
From: under the stars
Member No.: 76



Ccount - click and download counter
http://www.phpjunkyard.com/php-click-counter.php

QUOTE
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. tongue.gif
Go to the top of the page
 
+Quote Post
t3jem
post Apr 5 2008, 03:02 AM
Post #3


Privileged Member
*********

Group: [HOSTED]
Posts: 521
Joined: 9-February 07
Member No.: 38,519



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 tongue.gif
Go to the top of the page
 
+Quote Post
mrdee
post Apr 5 2008, 01:55 PM
Post #4


Super Member
*********

Group: [HOSTED]
Posts: 258
Joined: 18-July 07
From: Slough (UK)
Member No.: 46,682



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.
Go to the top of the page
 
+Quote Post
serverph
post Apr 5 2008, 05:29 PM
Post #5


Ancient Enigma
Group Icon

Group: [MODERATOR]
Posts: 1,753
Joined: 11-July 04
From: under the stars
Member No.: 76



@mrdee:
QUOTE
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. smile.gif

@t3jem:
QUOTE
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. smile.gif
Go to the top of the page
 
+Quote Post
tracdoor
post Apr 6 2008, 07:47 PM
Post #6


Member [Level 1]
****

Group: [HOSTED]
Posts: 66
Joined: 2-April 08
From: Berkshire, England
Member No.: 60,270



Thanks for the person that posted that link, it really helped me, the download counter will be a key part in my site smile.gif


Thank you so much smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Website Building- E-mail Forwarding & Downloads(9)
  2. Webpage Design- Autodownloading Hosted Files(1)
  3. Php Tutorial - Basics...up To Mysql/file Commands(1)
  4. File Upload From Url(3)
  5. Import From Excel File Into Mysql Database(7)
  6. I Need Help With Attaching A Keylogger 2 A File How Do I Do It?(4)
  7. Looking To Host Music .mp3 File(8)
  8. Trap17 Free Web Template Downloads(10)
  9. Resizing A Quicktime File ?(6)


 



- Lo-Fi Version Time is now: 25th July 2008 - 10:24 AM