Q4: Can I have multiple counters?

Answer

Yes! There are two methods for multiple counters:

Method 1: Separate Scripts

Copy the script for each page:

textcounter_home.pl  -> home_count.txt
textcounter_about.pl -> about_count.txt
Method 2: Query String Parameter

Use one script with a page parameter:

<!--#exec cgi="/cgi-bin/textcounter.pl?page=home"-->
<!--#exec cgi="/cgi-bin/textcounter.pl?page=about"-->

The script then creates separate count files for each page.

Previous Text Counter FAQ Next