The Official EHTML Page - Code LOCLOG

To Log Visitors To Your Page


The <LOCLOG> code under EHTML is used to maintain a "visitor log". That is, a log file is updated every time your page is loaded by a client. The file contains the client domain of each load. The <LOCLOG> code can then be used to create a report which summarizes the visitors to your page.


Attributes

ADD
Add the current load of your page to the log file. This code can only be used with attribute filename.
DISPLAY
Displays the current log information in your page. No sorting is used. This can only be used with attribute filename.
NUMSORT
Displays the current log information in your page. The information is sorted by the number of times your page was loaded by a particular domain. This can only be used with attribute filename.
LOCSORT
Displays the current log information in your page. The information is sorted in ASCII (psuedo-alphabetical) order by the domain that loaded your page. This can only be used with attribute filename.
filename
The name of the file that will contain your log of visitors, without any extension. EHTML will automatically add an extension of ".location".


Setup

Since the <LOCLOG> code maintains the log of the visitors to a given page in a special file, it must be able to create and access that file. This means that the "html/ehtml" directory, where the logs are stored, must be both "readable" and "writable".

To begin the setup for the <LOCLOG> command, 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 accessed by the EHTML server. To do so, enter the following commands under UNIX.

 cd ~/html/ehtml          ; # Enter your "html/ehtml" directory under UNIX
 chmod a+rw .             ; # This lets the EHTML server access logs

After your log file is able to be created in the way specified above, you must add the code to your document in order to maintain the log. You use the format <LOCLOG logfile> where logfile can be any short name for this particular log. Note that by convention you should not use spaces in your log file name. As well, the EHTML server automatically adds an extension of ".location" to log files.


[ EHTML Overview | EHTML Setup | EHTML Codes | EHTML Problems ]
Please Report Problems With This Page To: Vaxxine Web Development, vaxxweb@vaxxine.com


Original EHTML documentation by RK. EHTML originally designed by JP, updates by RK.