I open a file, modify it, save it out to disk. The VERY next line, i open it, and the size is zero. I look at the file and it is fine (not zero).
I think there is a timing issue with php on file read/writes. I tried sleep(1), but all that did was slow the script down (didn't help).
un-educated guess: did you try fclose then fopen again?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php