Indiana State University   OIT/Web Development

Page Counter Instructions

A page counter script is pre-installed on the main ISU web server (www.indstate.edu).
Follow the steps below to add a counter to your page:

  1. Update the WWW page you wish to maintain a counter for and add the following text (exactly as it is shown) at the point where you want your counter to appear:

    <!--#exec cgi="/cgi-bin/wwwcount.pl" -->

  2. Create the counter data file for this page using the following sequence of commands (These are unix commands and must be executed while logged in to your account with a SSH client. This cannot be done while using the ftp client):

    cd file-directory-path
    (If the html file is in your main directory, you are already there and don't need to do this step)

    touch xxxxx.cnt
    (xxxxxx should be the same as the name of your html file ... with .cnt instead of .html)

    chmod 764 xxxxx.html

    chmod 666 xxxxxx.cnt

 

This page is maintained by web@indstate.edu