How to use txtcounter.pl on your website

To call the text counter from your webpage put the following code into your HTML document:

      <!--#exec cgi="/cgi-world/txtcounter.pl"-->

The HTML page the counter is on will need to end with .shtml instead of .html for the counter to work.

Our version of txtcounter is automatically setup for use with your server, and does not require any special modifications. Automatic datafile creation has also been turned on, therefore if you make any new page and call the txtcounter.pl program from it, a new datafile will be started for that page.

All datafiles are kept in your home directory (/ on the FTP server) in the txtcounter directory.


This usage guide was written by the author of txtcounter.pl, Matt Wright. Some portions have been added/modified by our staff for our specialized version of txtcounter.pl. You can see more of Matt's programs at Matt's Script Archive.


Return to Support Index