PDA

View Full Version : Need Easy Script to count downloads



MajikRanae
06-29-2007, 12:43 AM
Hi all,

I am looking for a way to count how many times various items on my site have been downloaded. I used a script for one of my sites and it worked fine, however where I need this one to count from seems to be a problem. lol

The area I need it to count from is with a protected members area. The script I have has me renaming the link ( I would image so the link will go through the counter ) and then the download will not work. It just goes to an error page cannot be found.

I only know basic HTML so it would help if the script was simple, but if there is no easy way, then I am sure I can figure it out.

I thought there may be something within hostmonster that would show me this information but have found nothing.

Thank you in advance for any help you can give me.

Ranae'

charlesgan
06-29-2007, 10:21 AM
try to use the statcounter.com
get a free counter from there, and setup a tracking for your project.

basically this counter is count by pageview. even i view the page from local pc, it will be counted as well.

put the script at the member download page. will track the download and in details.

MajikRanae
06-29-2007, 09:47 PM
That doesn't help... :(

I have multiple downloads on each page. I am looking for a way to count each download individually.

nerdykit
06-30-2007, 11:18 AM
I have multiple downloads on each page. I am looking for a way to count each download individually.

You might consider installing a free-ware download manager such as W2Box (http://labs.beffa.org/w2box/) has a count downloads feature.

sjlplat
06-30-2007, 04:16 PM
Use Javascript to execute a php script in a popup window. When a visitor clicks a link, the Onclick function is used to open a separate window. That separate window contains a php script, which counts the click. It can be done with a simple database, or a flat file.

Here's a quick reference you can use to implement this:

http://www.peoplecnc.com/java_php.html