I'd like to put my game on the web for downloading, but I'd like to have a script (PHP, preferably) that keeps track of how many times the game has been downloaded and display it. How do you do that?
The AGS homepage does that, doesn't it?
Just upload the game somewhere, enter it in the AGS games database and every download via the database link gets counted.
Quote from: strazer on Mon 10/01/2005 23:10:44
The AGS homepage does that, doesn't it?
Just upload the game somewhere, enter it in the AGS games database and every download via the database link gets counted.
Nice. But I'd like to have it on my own web page as well.
You can use the database link on your homepage as well, so instead of http://www.davelgil.com/ags/toak.zip just use http://www.adventuregamestudio.co.uk/games.php?action=download&game=462 for the same effect (using this month's Pick of the Month as an example).
Quote from: Anym on Tue 11/01/2005 00:45:37
You can use the database link on your homepage as well, so instead of http://www.davelgil.com/ags/toak.zip just use http://www.adventuregamestudio.co.uk/games.php?action=download&game=462 for the same effect (using this month's Pick of the Month as an example).
That is also nice, but I need this script for other downloads as well, such as music tracks.
Just Google for 'Download Counter' (http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=DVXA,DVXA:2004-36,DVXA:en&q=Download+Counter).
Some of them you have to pay for, some are only for one file, but there should be one that'll work for you. Don't know ifany are PHP, though, didn't look that hard.
Found a neat thing called "Download Center Lite".
You will find great download scripts (and many, many other nice ones) for free at www.hotscripts.com. Their PHP section is filled to the brim with scripty goodness. ;D
Even easier, just look at your website stats and see how many times the file has been downloaded.