Main Page
TellAFriend.cgi
Multi Text Counter |
Multi Page Text Counter
OK, I was looking for a simple to use, NON-SSI called
multiple page text counter, I couldn't for the life of me find one, so I
decided I would make one :)
Requirements
Setup
Download
Requirements
Setup
(This file is included in the distribution)
OK, This is a simple to use program. It doesn't
require you to have SSI. Called via JavaScript.
-
Just need to edit the Path To Perl. #!/usr/bin/perl
default for Unix, and #!C:\Perl\Bin\Perl.exe
is normal for Windows. If you don't know the path to perl, contact
your webhost.
-
Edit the Path to the data files
directory (Should be below your CGI Bin, So it is possible to use such
as data on *SOME* servers. (Windows servers to my knowledge require
the whole path, IE "C:/Xitami/cgi-bin/data"
Don't include the trailing slash.
$logdir = "/Your/Path/To/Data";
-
Edit The Text Displayed before the
counter number.
$before_count = "This Page Has Received
";
-
Edit The Text Displayed After Counter
Number.
$after_count = "Hits Since The Counter
Stated.";
-
Edit The Font Tag. Dont use a "
instead use a ' (single quote) as otherwise it will mess up with the
script call.
$font = "<font size='2' face='veranda,
arial'>";
-
Paste the script call into the page you
want the count displayed on. It will appear where you place it:
Edit *PageNumber* to the page identifier you want to use, Use only
numbers, letters _ and -.
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="/cgi-bin/counter.cgi?page=*PageNumber*"></SCRIPT>
Download
Zip File (## KB) Self
Extracting Zip File (## KB)
I would be grateful to have a link from your website, but
it isn't compulsory. Please direct links to http://www.e-walks.tk
|