As ever, you use this free program at your own risk.

Feel free to use the software on this site but please honor the copyright.


This page provides an overview of our download counter PHP scripts which implements a way of counting how many 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.

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 webhosting platform).
  • All the PHP and INC files should be file transferred to your web server.
  • All the PHP and INC files must be in the same folder/directory, with the exception of the test TXT file. This 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

 
 

Download Counter
zip file

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 dowload file that can be placed under the download directory to test the facility.
 
 
 

Implementation
Guide

This is the link to Download Counter implementation guide.

This manual will describe how to implement and use the Download Counter facility
 
 

Pdf
Click the PDF logo to download the Implementation Guide as a PDF

 


If you need any support or assistance with any of the code on this site
or
if you would like to contact us, please click here

follow us on facebook
Follow us on Facebook

 

Number of unique visitors 31



Copyright © Abbydale Systems LLC 2015-2025

Abbydale Systems LLC Lic. 802696149. All rights reserved.

Last modified : Saturday 9th of August 2025