I've set-up webstats for my site in PHP based on files (it's a long story why) - everything works fine, but sometimes I got the values in files simply erased and it doesn't seem to be any hacking activity...
Can anyone tell me what to do to avoid such problems in future?? I've already created simple backup procedure which checks the value and if the value has been erased it brings back the last value, but still the problems with vanishing data are repeating...
I've already tried ignore_user_abort function but it didn't helped...
Probably the issue with logging script. Perhaps it is not storing a value or may be the value is null and that is overwriting the existing value.
You will have to set few debugging “stops” in your script and echo the values to the screen so you can see if they exist before they are are written to your data file.