Reply
file access problem
Old 07-04-2004, 02:21 AM file access problem
Junior Talker

Posts: 4
Hey!

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...

Help or just a hint - please!!!!

Frey
freyman is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-04-2004, 11:20 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
freyman,

It's pretty tough to nail down why something like that would be happening. Assuming you don't have problems in your code, the only other thing that might come to mind is file size. Are the files growing very large quickly and perhaps the PHP engine is having trouble with exceptionally large files? Again, just an idea.

I can't imagine that your host would be purging files?

I know this isn't much help -- I'm just thinking out loud in the hope it might benefit you in some way....
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 07-04-2004, 02:34 PM
cmonkey's Avatar
Ultra Talker

Posts: 268
perhaps its a problem with the logging script, maybe it just isn't storing a value, or maybe the value is null and that is overwriting the existing value.

try setting a few debugging "stops" in your script and echo the values to the screen so you can see if they exist before they are written to your data file.

If you still can't figure it out we'll probobly need to see some code to help you any further.
cmonkey is offline
Reply With Quote
View Public Profile
 
Old 07-05-2004, 04:41 AM
Junior Talker

Posts: 4
Well...

1. file size isn't problem - I write only up to 10 values inside of files

2. yeah, that's what I was thinking, but I can't figure out why this is happening by the stats only and pretty rare... maybe some rarely used browsers just mess up whit this??

Thanks to both of You for help - since it didn't happen to anyone else I guess I just have to follow Cmonkey advice and improve the script to avoid writing null values to the file...

Thanks guys
freyman is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to file access problem
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13104 seconds with 12 queries