CGI Scripting
  Web Hosting
  .






Overview
The script is written in PERL (CGI) and requires Server Side Includes (SSI) in order to run properly. Also, this script keeps count and track of all the people who vist your page. You have the option to display your text counter or to keep it hidden. Also, this script allows you the ability to log certain information about the user (Time, Type of Brower, Previous page, and their Internet Access Provider (ISP)). Both files are seperate! You also have the option to exclude yourself from affecting the count and tracker.

You are visitor 16331

Download - (zip file)
Zip file - (1.7 kb)

Script and Files
Count.cgi
Read Me
Counter.dat
Log.dat - An example of what you will see.


HTML Changes
Change the extension from '.html' to '.shtml' and add the following line to your '.shtml'.
<!--#exec cgi="http://www.yourdoamin.com/count.cgi"-->


Variables
This excludes YOUR computer from affecting the 'counter.dat' & the 'log.dat' files from being updated when you call the page. If so, enter your IP address. Otherwise, enter "0".
   $your_ip = "0.0.0.0";

This is the directory where your 'counter.dat' and 'log.dat' files will be kept. For instance, this counter is found on my page 'http://www.aestheticsurgerycenter.com/index.shtml'. You MUST have the complete directory or else it won't work. If you don't know it, ask your service provider. This directory will only work at www.wideworldmart.com - so change it!

   $directory = "/my/website/user/aestheticsurgerycenter.com/";

If you want the counter to display on the 'shtml' page, let $print = '1', or if you prefer to keep it hidden let $print = '0'.

   $print = '1';

The 'counter.dat' file will only count the number of hits, and 'log.dat' file stores the date, what previous page the person came from, their internet access provider, and the brower they use. Both files are hidden and need to be in the same directory as 'count.cgi', also they need to be 'chmod 766'.

   $count = "counter.dat";
   $log = "log.dat";


 



Google
 
Web aestheticsurgerycenter.com





All Rights Reserved - Terms