Support Issues: Area Code Change
Internet Security

Email:
Download:
Other Info:

Adding counters and other dynamic elements to pages

By making use of server-side includes (SSI) you can have bits of text in your document that change each time it is accessed.

Keeping Track of How Many Visits to a Page

Using server-side includes you include a file that runs a program to keep a track of how many times that page has been accessed. You do this in the following manner:

This page has been accessed <!--#include virtual="/secure-ssi/counter.html" --> times.

produces

This page has been accessed times.

Hostname of Visitor

You can include in your document the hostname of the person accessing your page. Here is an example of the syntax:

You are viewing this page from <!--#echo var="REMOTE_HOST" -->.

produces

You are viewing this page from .

Last Updated

You can show when your web page was last updated by using the following code:

This site was last updated on <!--#echo var="LAST_MODIFIED" -->.

produces

This site was last updated on .

Here is a list of other SSI variables.