|
Nothing shows up for the count when I view the page. Assuming that everything else is setup correctly it could be that your server has not enabled SSI or Server Side Includes. If your website is hosted by someone else find out if they have SSI enabled. If they do you might only have to change the extension of the html page to .shtml instead of .html.If you have access and you run your own server you will need to configure SSI in the webserver. This is a tutorial on how to setup SSI on Apache. http://httpd.apache.org/docs/2.0/howto/ssi.html
I don't want the Hit counter to say "Visitor Number" I just want the number. Open the script in a text editor and look for the line that reads:$CounterText="<STRONG><FONT size=\"2\">Visitor Number:</FONT></STRONG> ";If you want nothing but the number change it to read: $CounterText="";
None of my downloads work with the script! Check the line in the script that reads:my $FILE_REAL="/www/html/files/";Make sure the path is set correctly for your website. On a windows server it might look like: C:\www\myfolder\files\ or on linux /var/www/html/myfolder/files. This has to be a relative path you can't use www.mydomain.com/files/ it won't work.
I get [error processing this directive] instead of a count. Check the server logs, most likely you are getting a "premature end of script headers" error. This is most likely caused by the script being saved in a windows format instead of a linux format. They way that Windows and linux treat CR/LF in text files is different. Don't panic,there is an easy solution. Included in most Linux distributions is a program called dos2unix. Simply run the program on the script and it will fix it into a linux format. The command syntax is: dos2unix -o scriptname.pl If you are on windows and you don't have access to a server shell you can download a free version of the windows based dos2unix.exe and unix2dos.exe programs here or on the downloads page Run the script through them and it should be ok.
|