Cgi Tutorials [Counter Tutorial]

CHMODing is VERY important!,if u don't do it your scripts will NOT work
-------------------------------
666 = Read & Write for all three columns.
755 = Read, Write & Execute for Owner, Read & Execute for Group & Other.
777 = Read, Write & Execute for all.
---------------------------------------

Need Help on CHMODing? If you use Cute Ftp click here an if you have WS_FTP click here
-----------------------------------------------------------

So u want a counter for your site instead of a gay free server one that goes down a lot?..well this is probably the easiest script I've found an I use this one myself (its a text counter)

-First if you don't have the script d/l it here.
- Check the perl path at the very top in count.pl an change it to what your host uses its mostly #!/usr/bin/perl then in count.pl scroll down till u see $invisible ="0"; an it explains what to do in those 3 lines, u can just leave those alone if u want it wont matter.
-Next make a directory called "counter" then upload count.pl in ASCII MODE to there an CHMOD it too 755 (777 if problems)then upload in ASCII MODE, count.txt and record.txt to the same directory an CHMOD both to 777.
- OK that's basically it ,an to test your counter an see if it works insert this to your site <!--#exec cgi="/cgi-bin/count.pl" --> an u MUST give the page your using the counter on a shtml ext. if not it wont work ex: http://yoursite/main.shtml (counter would be on that page) an remember shtml pages have to be upload to your cgi bin or server.