Silicon Valley North

SSI Web Page Counter (for SVN users only)

Create a datafile for your counter

In the directory with your HTML files, type the following:

echo "0" > datafile
chmod 606 datafile

To display the counter on your webpage.

Put a line like this in your .SHTML document:

<!--#exec cmd="/usr/httpd/cgi-bin/ssicount datafile" -->

The result is: 4553

Note: You can use any name in place of datafile, and you may have more than one datafile, allowing counters on multiple pages.

To configure the specific counter options.

To increment the counter and not display the number,

<!--#exec cmd="/usr/httpd/cgi-bin/ssicount datafile /h" -->

The result is: , but the counter is incrementing.

To display the counter and not increment the number,

<!--#exec cmd="/usr/httpd/cgi-bin/ssicount datafile /s" -->

The result is: 99 displaying, but not incrementing.



COPYRIGHT | CONTACT INFO | DISCLAIMER