Just a (possibly stupid) suggestion--is it possible that the file is being overwritten by another instance of your script that's run in the meantime?
------------- php|architect -- The Magazine for PHP Professionals Check us out on the web at http://www.phparch.com On Wed, 2002-11-06 at 23:06, Charles Wiltgen wrote: > Hello, > > I'm having file locking problems. > > I'm using fopen() to write a file via FTP. At the end, I'm doing... > > fflush($fp); > fclose($fp); > > ...and then I include it immediately after. But many times I only get part > of what I wrote to the file, which suggests that it wasn't really flushed > and closed properly. > > What else can I do? > > Thanks, > > -- > Charles Wiltgen > > "Well, once again my friend, we find that science is a two-headed beast. > One head is nice, it gives us aspirin and other modern conveniences... > but the other head of science is bad! Oh beware the other head of > science...it bites!" -- The Tick > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php