One thing before we get started with the vars... On many systems all files where you call this script must end in the extention .shtml. Also, make sure this line:#!/usr/local/bin/perl points to the path to perl on your website. First off, in your main directory where you keep your index.html file, create a directory named counter. Chmod it to 777, and upload all your gifs, your data.txt, and your log.txt files there. Chmod them to 777. Then, upload counter.pl to your /cgi-bin directory in ASCII mode, and chmod it to 755. The following things need to be configured for your server's system: $basedir = "/data1/hypermart.net/arubandestroyer/counter"; This is the root dir to this program. For example: If I had this file in the directory "counter" and the path to my dir was /usr/home/www/me then my $basedir would be: $basedir = "/usr/home/www/me/counter"; Next Variable $baseurl = "arubandestroyer.hypermart.net"; This is the root url to your main directory. Make sure you don't start it with http://www. Once again, if my main url is http://www.hypermart.net my $baseurl would read: $baseurl = "hypermart.net"; Yet Another Variable $gifurl = "arubandestroyer.hypermart.net/counter"; This is the url to your counter directory(the one which contains the .gif files). Make sure not to start this with http://. So, if my URL was http://www.hypermart.net and I had followed the directions to this point, this would read: www.hypermart.net/counter. The Last Variable $multi_submit = "no"; If you leave this as no, then it will not allow multiple additions to the tally from the same person. If you do want the same person to be able to add to the tally multiple times, simply change this to yes. Now then, to have this script count on your page put in the following where you want it to appear: make sure you configure /cgi-bin/counter/counter.pl to be the path to the directory it is in on your system. Example: My url is http://www.help.com. My script resides in the url http://www.help.com/cgi-bin/counter/counter.pl Then I would write: where I wanted this to appear. If this script was at http://www.help.com/cgi-bin/counter.pl I would write where I wanted the count to appear. Simple enough for ya? good. Don't forget: Chmod all your graphics, data.txt, and log.txt to 777. Also, upload the script IN ASCII MODE and chmod it to 755. The last thing is this: You can have any count graphics you want, just be sure to name them 0.gif 1.gif etc, according to the number they represent, otherwise the script will not work. That's everything... Make sure not to rename any of the files, unless you are confident you know what you are doing. If you encounter errors and don't know why, or have a thought on how to improve this script, feel free to e-mail me at garen@isd.net or ICQ me at 23131674.