Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Download Count
10-18-2008, 12:19 AM #1
- Join Date
- Jul 2008
- Thanked 0 Times in 0 Posts
I want to make it so everytime the link is clicked there is a number count like next to the link so people can see how many times it was downloaded. Also, it only can go up once for every ip or something that can stop people from raising the count a ton.
10-18-2008, 02:59 AM #2
- Join Date
- Jun 2003
- Cottage Grove, Minnesota
- Thanked 1,077 Times in 1,068 Posts
How secure or reliable does that count need to be? Just sort of an "idea" of how many?
IP addresses are dynamic and change from connection to connection.
Basically, reliable only for the time the person is online at that specific time.
If the download and count is critical, a registered member log-in is the
only way to control those downloads. The next decision is whether or not
to retain the IP address forever? So once an IP address downloads, they cannot
ever download again? Or will you have a time period, like the IP cannot download
again for 24 hours?
These decisions affect the method and scripting you will use.
In any event, you are going to retain the count for each link, so you'll need a
database of some kind ... most likely using PHP and MySQL.
This idea of yours sounds sort of like a voting script where a person can vote
one time for an item (or a link). It retains the number of votes for that item
and also won't let that IP vote again. You can find scripts like that and simply
change the "concept" of the script to your own needs. Instead of "votes", it will
See if this script (or others on this site), might be something you could use:
Last edited by mlseim; 10-18-2008 at 03:05 AM.
Users who have thanked mlseim for this post: