Installation guide for TextCounter - text-based page counter with date tracking (v1.2)
TextCounter 1.2 allows you to include a text-based counter on any page. Features include:
README - Installation instructionscounter.pl - The CGI/Perl program| Variable | Description |
|---|---|
$data_dir |
Path to data directory (must end with /). Requires chmod 777. |
@valid_uri |
Array of allowed URI paths that can use the counter |
@invalid_uri |
Array of URI paths that cannot use the counter |
| Option | Values | Description |
|---|---|---|
$show_link |
1 / 0 | Show link to TextCounter information page |
$auto_create |
1 / 0 | Automatically create data files for new pages |
$show_date |
1 / 0 | Show "since [date]" with counter |
$lock_sec |
number | Seconds to wait for file lock (0 = no locking) |
$pad_size |
number | Pad counter with zeros to this many digits (0 = no padding) |
Use Server Side Includes (SSI) to embed the counter:
<!--#exec cgi="/cgi-bin/counter.pl"-->
The script automatically determines which page is calling it based on the referrer.
Browse all script documentation