Tech Support Topics

Sphynx Server CGI

Graphical Hit Counter / Clock / Date For Any Page on Your Server

WWW Count 2.2


  1. Installation
  2. Example Counter and Clock
  3. Documentation


Installing WWW Count 2.2

WWW Count 2.2 is a CGI program written in C that runs on a variety of server platforms. It allows you to put a hit counter, digital clock or digital date display on any site on your virtual server.

Count 2.2 does not use server side includes. It "manufactures" a gif image of the hit count which the page then loads as an inline image.

Please Note: Count 2.2 and its related files will occupy just under 2 MB of your server's storage space.

To install Count 2.2 from its compressed archive, open a telnet session on your virtual server and do the following:

  1. Untar the WWW Count 2.2 tar file:
      % cd    (this will put you in your home directory)
      % tar -xvf /usr/local/contrib/wwwcount.tar
    
  2. Now that the WWW Count 2.2 is installed, you will have to create a configuration file for it to work with your virtual server. Copy this "count.conf" file by using "save as" on your browser. Save to your local computer, then edit the file with a text editor. You will need to substitute the occurrence of DOMAIN NAME in this file to be your domain, and the occurrence of IP ADDRESS to be the IP address of your virtual server. The portion of the count.conf file that must be changed is shown below:
      {
      IP ADDRESS
      }
      # Auth block
      # all possible names and IP addrees of your host can be referred.
      {
      IP ADDRESS
      DOMAIN NAME
      }
    

    After editing the count.conf file, upload it in text form to your server. Open a ftp connection and navigate to:

    Then upload your edited count.conf to replace the default count.conf file already there.

  3. The WWW Count 2.2 program has already been compiled for your use. All you need to do is create a test page with the appropriate HTML source and try it out, or just add the lines below to an existing page to add a counter or clock to that page. Examples of HTML source that can be used are given below:
    <img src="/cgi-bin/Count.cgi?dd=B|frgb=69;139;116&df=example.dat" align=absmiddle>
    <img src="/cgi-bin/Count.cgi?frgb=69;139;116&display=clock" align=absmiddle>
    

    The HTML source above will create the following counter and clock:


       


Documentation

Local documentation will be installed on your server when you install the WWW Count 2.2 tar file. You'll find it in the following directory:

This documenation is also included here for your reference.


HOME | SITE HOSTING | VIRTUAL SERVERS | PAGE DESIGN | FAQ | ORDER | TECH SUPPORT


Copyright © 1996, Sphynx Web Solutions. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders. Direct questions or comments to webmaster@sphynx.com.