The counter is fairly simple, it reads in a specified counter file, increments the count within the file, writes out the new value and outputs an image file with the new value displayed. It also takes some parameters for background and foreground colour, or these can be left at default values (black on white) if you prefer.
It uses PHP, and the GD library extensions to PHP
It is released under the GPL Version 2
Only parameter on the actual link should be a count=<directory name>. This directory should contain a count.conf file, with a minimum content of just a "filename=" line to indicate the filename to store count data in, but can have the other parameters in as well.
e.g. http://www.bits.bris.ac.uk/palfrey/utils/counter.php3?conf=count
| Name | Example Value | Notes |
| filename | count.dat | Only necessary parameter |
| bcolour | ffffff | Hex value, same as html colours for the background (Default: ffffff) |
| fcolour | 000000 | Same as bcolour, but for foreground colour (Default:000000) |
| hosts | hosts.txt | File to store the list of hosts that have accessed this counter, with individualized page counts |
| dont_count | 137.222.209.41 | Your IP, to avoid being counted when you check your own page.... you're still counted in the hosts file. |
Return to the Code Page

