| CountDown.cgi v2.x This
script tracks the number of downloads of files from
your site.
Instructions on Use:
--------------------
Place a link to this script on your website. The proper form is:
http://www.yoursite.com/yourdir/countdown.cgi?yourfile.anything
It will add a count to a user-specified file (i.e.
countdown.log),
and then auto-forward to the download file. The interface has no prompts
for the user.
Files needed:
-------------
countdown.cgi : This is the script file : chmod 755
countdown.log : This is the counter log file : chmod 666
countdownlog.htm : This is the HTML output for easier reading or public
display of the log file : chmod 666
countdowntopten.htm : This is the HTMl output for the top ten file.
chmod 666
Installation:
-------------
Chmod the scripts as above.
Change the first line of countdown.cgi to the location of PERL on your system.
5 items need to be changed in the script.
$CountDownLocation
Location and name of the CountDown Script on your server
Example:
$CountDownLocation = 'http://www.yoursite.com/yourdir/countdown.cgi';
-----
$DownloadFileDir
This is the location (URL) of the files that will be downloaded. Do not put a
slash at the end!
Example 1: Your download files are uploaded to your root directory.
$DownloadFileDir = 'http://www.yoursite.com';
Example 2: Your download files are uploaded to another directory.
$DownloadFileDir = 'http://www.yoursite.com/otherdir';
-----
$Counter
This must be set to the absolute location (server directory)
of the counter file.
Example:
$Counter = '/docs/logs/countdown.log';
-----
$HTMLFile
This is the HTML output filename, same format as $Counter.
Example:
$HTMLFile = '/docs/logs/countdownlog.htm';
-----
$TopTenFile
This is the HTML Top Ten filename, same format as $Counter.
Example:
$TopTenFile = '/docs/logs/countdowntopten.htm'; |