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
A text access counter
The text access counter displays the count number in plain text within the HTML page. Figure 1 displayed several text and graphical access counters. Because the text counter uses plain text, it is much easier to implement than a graphical counter. The biggest decision is how to call the access counter script. It's easiest to do this with Server Side Includes, but not all systems have Server Side Includes enabled. The following sections describe how to create the text access counter script and explain two different ways of adding it to your Web pages.