How to install:

1. open config.php and edit it.

2. create download_titles table (sql file is included) in your database.

3.upload all the files in the ascii mode.

4. Open the admin.php through your browser and add new downloads.

How to link to your downloads:

it will be something like that:

http://www.yourdomain.com/download.php?title=MyFile

How to Show the counter:

type:

http://www.yourdomain.com/download.php?action=show&title=YourFileTitle

to include in your page through ssi:

<!--#include virtual="download.php?action=show&title=YourFileTitle" -->

How to delete records:

Ok, i was too lazy to add a way to delete the records from the admin panel, so i afraid that you have to delete it manually throguh PhpMyAdmin or Telnet! if you want to remove a specific record, just delete the row which hold the file title you wanna delete in (download_titles table) after that, remove its table, the table name will be something like that download_YourFileName. If you want to delete them all, just remove any table starts with "download" make sure that the table is created by this script!

Using JavaScript to show the counter!

edit config.php and include this code in your html:

<script language="javascript" src="http://www.yourdomain.com/download.php?title=YourFileName&action=show"></script>

 

######################################################### # # # This script was provided by: # # # # PHPSelect Web Development Division. # # http://www.phpselect.com/ # # # # This script and all included modules, lists or # # images, documentation are © 2004 # # PHPSelect (http://www.phpselect.com/) unless # # otherwise stated in the script. # # # # Purchasers are granted rights to use this script # # on any site they own. There is no individual site # # license needed per site. # # # # Any copying, distribution, modification with # # intent to distribute as new code will result # # in immediate loss of your rights to use this # # program as well as possible legal action. # # # # This and many other fine scripts are available at # # the above website or by emailing the authors at # # admin@phpselect.com or info@phpselect.com # # # #########################################################