in reply to Hit Counter

Right off the bat, two lines look quite wrong. The "second stage", where you read from the file, should look like
$visites = <hits>;
That's how you read from a file. The sixth stage, where you close the file, should look like
close hits;
In addition, though, you should be: These are good practices for any programmer. The second, file locking, is especially important, because you could have more than one person updating your hit counter file at the same time. Thus you need file locking.

One of Randal Schwartz's Web Techniques columns focuses on file locking.

Replies are listed 'Best First'.
RE: Re: Hit Counter
by anmaco (Novice) on May 21, 2000 at 23:07 UTC
    Thanks for the help - I'll try it out! Hey - I still don't know what 'geek' means!