home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Windows 95.com 1996 September
/
WIN95_09961.iso
/
websrv
/
PGCNT21.ZIP
/
readme.txt
< prev
Wrap
Text File
|
1995-08-04
|
3KB
|
106 lines
Beverly Hills Software Access Count and Update CGI
Application for WebSite Servers for both single and
multi domain configurations.
-----------------------------------------------------
What's New in 2.0
-----------------
The 'Document contains no data' bug us finally fixed.
The access.dat file now conatains a line for each access (flat file log)
-----------------
The files in this zip file are:
pagcnt.exe ; The CGI executable
pagcnt.html ; sample html set up file
readme.txt ; this file
access.dat ; data file needed for CGI
WebSite Server Configuration
You must set the Indexing/Special Documents/Index value in
the WebSite Admin program to "index.*". This is needed as
the executable file will be named index.wcgi.
HTML Directory Setup
It is assumed by the CGI app. that it has been named "index.wcgi"
and that it is the only file in the directory with the base name
of "index".
Copy pagcnt.exe to index.wcgi in the directory you will be
referencing.
eg.
If your URL is http://machine.name.domain/ and
C:\website\htdocs is the root dir for HTML documents
you would copy the pagcnt.exe to c:\website\htdocs\index.wcgi.
or
If your URL is http://machine.name.domain/Topic/ and
C:\website\htdocs is the root dir for HTML documents
you would copy the pagcnt.exe to c:\website\htdocs\topic\index.wcgi.
Copy access.dat to the same directory. This is the data file
that is use to keep track of how many acceses have been made
to the URL and who was there last and when.
The format of the one line data file access.dat is:
count lastIP mm/dd/yy hh:mm:ss
count = the access count for this URL
lastIP = the IP address of the last visitor
mm/dd/yy = the date of the last visit
hh:mm:ss = the time of the last visit
There is now one line for each access, thus a log file file this page.
The next file that must be in the directory is
pagcnt.html
This is your template file. It should be the same as if
you werent counting accesses with the following exceptions:
You must have two items embedded in pagcnt.html
*** NOTE *****
BOTH ITEMS MUST BE IN THE FILE IN THE ORDER SPECIFIED
**************
A ^ character followed somewhere in the file by
a ~~~~~ string.
The first ^ will be replaced with the date and time
this file was last modified.
The ~~~~~ will be replaced with:
"access count"
Last accessed by "ip address" on "date" at "time"
Current visitor:"ip address"
Here is a sample pagcnt.html listing:
<HTML>
<TITLE>Page count Demo HTML Template</TITLE>
<body>
<h4>Last Updated: #</h4>
<hr>
<h4><font size=-1>Page Accesses:~~~~~</font></h4>
</body>
</html>