-
Flat File PHP Hit Counter keeps zeroing itself
Hi,
Ive been using a flat file hit counter to record hits but the text file zeros itself occasionally and I have no idea why - sometimes it starts counting again from 1, other times the text file is just empty and wont start logging additional hits until a number (any number) is entered into it manually, after which it +1 as normal.
Its only a simple counter with no cookies and counts every single hit regardless of IP or time. Ive also tried other similar flat file scripts and it happens on them all at some stage.
If anyone has an inkling as to why this is happening so I can approach my webhost, please let me know.
Alternatively, I you know of a simple counter that uses a SQL database backend, please let me know. Bear in mind that I have very little SQL/phpMyAdmin knowledge so unless there is one of those copy&paste table set-up queries, I'm lost! The counter also needs to be visible in and log hits from 2 homepages (one is for members but needs to write to the same hit count).
Any help or advice that anyone can offer would be wonderful.
Thanks
Bev
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks