clicks counter scripts set
Description
This scripts set is intended to count clicks for any local paths via referring to counter script that will redirect your visitors to a target location after updating the count for current location. You can use it in different ways, e.g. for counting file downloads on your site.
The set contains 3 files:
- count.db - empty data file
- count.php - clicks counter script that writes data to count.db
- stats.php - clicks stats displaying script
Usage
- Upload all the three files to the root folder on your server.
- CHMOD count.db file to 666 to make it writable.
- Replace your local links you want to implement the counter using the following pattern:
<a href='/count.php?target=local/file.ext'>link text</a>
where 'local/file.ext' is the target path starting from the root. - To check the stats, open stats.php in your browser:
http://www.yourdomain.com/stats.php
Online DEMO
Download
Download the entire set (4kb).