Script URL:
Version of script: 1.2
Write your message below:
Using the text hit counter for a while now, works fine until now.
Suddenly when it should display 35750 it displays 6 or 12500
When I view the index file in the log dir. I see it's reset to an other
count.
When I fill in 35750 in the index.txt it's working fine again but this happened several times in a few weeks now.
Any idea ?
Jaap.
PHP text hit counter
This sometimes happens because text files can't take as much load as for example SQL databases (for example it can get corrupted when several people are accessing the text file at the same time). Although the counter uses PHP file locking to try to prevent such things from happening I did see it happen before. I would suggest that if you get many hits you find a counter with a mySQL database rather then storing hits in a text file.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools