image\overbutt.gifAdding a hit counter SSI directive to a Web page

You can add a hit counter SSI directive to an HTML document. A hit counter keeps track of the number of HTTP clients that visit your Web site. The example below calls the counter.cgi file. If you do not have a counter.cgi file, see "Creating a hit counter using Perl." You must use the exec command in the SSI directive to execute the counter.cgi file. The HTTP server executes the SSI directive before the HTML document is sent to the HTTP client.

To add a hit counter SSI directive to a Web page

1. Click Application Starter, Utilities, Text Editor.

2. Choose the directory where the Web page is saved.

3. Open the Web page.

4. Add the following HTML code to the file:

<P ALIGN= center> You are visitor number

<B><!--#exec cgi="/cgi-bin/counter.cgi"--></B>

to visit this page</P>

image\nicon.gif Notes