in reply to Hit Counter

Also, on first stage, you are opening /cgi-bin/compteleShits (hehe), the correct path of that file would be /home/your_site/cgi-bin/compteleshits
you shoud probably do:
open(hits,"$filename") or print "Can't open $filename"; #"die" could + give you an "Internal server error" without any description.
So you know if the file is opened correctly.