As ever, you use this free program at your own risk.
Feel free to use the free software on this site but please honor the copyright.
This page provides an overview of our download counter PHP scripts
which implement a way of counting the number of times a file was downloaded from
a website.
This will enable statistics to be gathered for analysis. This information is
captured and stored in a SQL table (actually a MySQL table).
The majority of the code is written in PHP, however, there is also some sample
HTML provided to show how to test the facility and also an example of
displaying the counter statistics.
We have a zip file that contains all of the collateral available
here.
There are several pre-requisites for the implementation of the code these are:
- An SQL type database (i.e. MySQL). This is for holding the download counter table. Normally this should be part of the webhosting platform that you are using.
- PHP needs to be available (This also should be part of the web hosting platform).
- All of the PHP and INC files in the Zip file are transferred to your web server.
- All of the PHP and INC files must be in the same folder/directory.
The only exception is the test TXT file which should
reside in your chosen download directory as a test sample.
- You will need an unzip utility as the facility is distributed as a
zip file. We
recommend 7-zip.
Please read the Implementation Guide for full details on how to install and
implement the Download counter facility.
The facility comprises of the following components:
Link
|
Description
|
|
|
This zip file contains all the collateral (6 files) needed for the
Download Counter facility. It should be downloaded, and then
unzipped. The file also contains the Implementation document.
The contents of the zip file are:
|
File
|
Description
|
|
DownloadCounter Implementation.pdf
|
This is the Download Counter implementation
guide document. (click the link below to download just the document)
|
|
Downloader.inc
|
This is the include file that contains the required database login
information, table name to use and download directory definition.
|
|
Downloader.php
|
This is the main webpage that should be called to increment the counters.
It will then download the passed filename.
|
|
DownloaderTest.php
|
This is the webpage that can be used to test the facility.
It is not intended to be used in any production system.
|
|
ListCounters.php
|
This is a sample page that will display the contents of the download
counters table.
|
|
TestDocument.txt
|
This is a sample download file that can be placed under the
download directory to test the facility.
|
|
|
|
|
This is the link to Download Counter implementation guide.
This manual will describe how to implement and use the
Download Counter facility
|
|
If you need any support or assistance with any of the code on this site
or
if you would just like to contact us, please
click here
Follow us on Facebook