#! /usr/local/bin/ehtml
The <COUNTER> code under EHTML is used to maintain a "visitor count". A visitor count is a counter is incremented by one (1) every time your page is loaded by a client.
Since the <COUNTER> code maintains the count of the number of visitors to a page in a file, it must be able to access that file. This means that the "html/ehtml" directory, where the counters are stored, must be both "readable" and "writable".
To begin the setup for the <COUNTER> code, you must access a UNIX prompt by either logging in to "alpha.vaxxine.com" using a terminal emulator program or by using a "telnet" program running over SLIP/PPP.
After logging in, you must set your "html/ehtml" directory so that it can be fully accessed by the EHTML server. To do so, enter the following commands under UNIX.
cd ~/html/ehtml ; # Enter your EHTML data directory under UNIX chmod a+rw . ; # This lets the EHTML server access counters
After your directories are setup in the way specified above, you must add the code to your document in order to maintain the counter. To create a counter called "eh_counter", you use the format <COUNTER ADD eh_counter> Note that by convention you should not use spaces in your counter name. If you wish, you can then use the <COUNTER DISPLAY eh_counter> code format in your page to show the current value of the counter.