Download script

Started by simulacra, Mon 10/01/2005 22:44:54

Previous topic - Next topic

simulacra

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?

strazer

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.

simulacra

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.

Anym

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).
I look just like Bobbin Threadbare.

simulacra

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.

Ashen

Just Google for '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.
I know what you're thinking ... Don't think that.

simulacra

Found a neat thing called "Download Center Lite".

Miez

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

Pumaman

Even easier, just look at your website stats and see how many times the file has been downloaded.

SMF spam blocked by CleanTalk