phat code If it's not on fire, it's a software problem.
Main

Projects

Downloads

Articles

Links

Forum

 

View Message

Back to Messages
subxero Mon Mar 5 2007 at 1:34 am
I figured out what happened...
 
 
I uploaded a 45 MB RAR file to the server from a friend's house, but I was wicked tired when I got home, so I just left the file there. After the forum screwed up, I took a look at my usage stats (in cpanel) and saw that I had -0.1 MB free (negative free space :-P) so I'm figuring it couldn't write the database contents due to quota problems -- the write never succeeded, so the file was left empty.

So, it was my fault. I'll be more careful about this next time.

P.S.: Yeah, I am locking the file using flock($handle, LOCK_EX) and then with LOCK_UN every time I do any operations on it. Also, I wish they could've used two commands for locking: flock() and funlock(), just 'cause fun-lock is more interesting.
 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.