A text access counter
The Increment subroutine
The complete text access counter script
Seeding the Counter
Adding the Counter to Your HTML Page
With Server Side Includes
Without Server Side Includes
Creating the Template File
Modifying the access.pl Script
A graphical access counter
Incrementing the Counter
Creating the GIF Image
Returning the Graphical Counter Image
The Graphical Counter Script
Calling the Counter with the <IMG> Tag
Adding the Counter to Your HTML Page
With the access.pl and count.dat files completed, you are now ready to add the counter to your Web page. The easiest way to do so is to use a Server Side Include. However, you may have disabled Server Side Includes on your system. Or you may be using a Web server on which the administrator has turned off Server Side Includes and does not wish to re-enable them. For these reasons, this section also describes an alternative way of adding your text access counter that doesn't require a Server Side Include. This technique takes more work to implement, however, because you have to make changes to the access.pl script.