Counters, counters everywhere! It seems that the web counter is just about a ubiquitous as the web itself! Two simple counters (one text and one graphical) are presented in three sections below.
The HTML source below represents a the server side include necessary to call either the textual or graphical counter CGI.
<!--#exec cgi="/cgi-bin/c4.pl" --> (textual) or <!--#exec cgi="/cgi-bin/c4g.pl" --> (graphical)
In order for Server Side Includes to work, they must be allowed to execute. This can be done globally with the server configuration files or locally with a file named ".htaccess" (assuming typical installation of NCSA httpd applies). A ".htaccess" file overrides global server configuration for the directory in which it resides. An example of a ".htaccess" file is shown below:
Options Indexes FollowSymLinks Includes AddType text/x-server-parsed-html .html
The textual based counter is written by Jonathan Lewis. The graphical based counter is simply a modification of the textual counter- modifications were made by Scott Pierce.
If you are unfamiliar with the CGI standard, or would like to learn more about the Common Gateway Interface, the following URL is an excellent resource:
http://hoohoo.ncsa.uiuc.edu/cgi/
To install the textual based counter you will need to follow these steps:
Options Indexes FollowSymLinks Includes AddType text/x-server-parsed-html .html
Over <!--#exec cgi="/cgi-bin/c4.pl" --> Internet Customers Served.
To install the graphical based counter you will need to follow these steps:
Options Indexes FollowSymLinks Includes AddType text/x-server-parsed-html .html
Over <!--#exec cgi="/cgi-bin/c4g.pl" --> Customers Served.