Adding an Access Counter
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

[Previous] [Next]


Without Server Side Includes


Suppose you want to use the text access counter without using a Server Side Include. It is still possible, but you have to generate the entire page from your CGI script. You can change your HTML page to a template and have your CGI script read in the template, place the current value of the counter within the template, and output the entire page to the user's Web browser.


[Previous] [Next]