Re: [PHP] PHP fopen() bug + solution

2002-11-08 Thread Charles Wiltgen
Ernest, > To be more effective, and to allow the OS to do something else while you're > waiting at the file, your script should sleep for some microseconds... An excellent suggestion, thanks very much! :^) -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] PHP fopen() bug + solution

2002-11-08 Thread Ernest E Vogelsinger
At 00:51 08.11.2002, Charles Wiltgen said: [snip] >Example: while(!file_exists("index.php") { clearstatcache(); } > while(filesize("index.php" < 10) { clearstatcache(); } [snip] To be more effective, and t

[PHP] PHP fopen() bug + solution

2002-11-07 Thread Charles Wiltgen
Hello, Bug: When creating a file using fopen() with an FTP URL, the file may not be completely written even after you call fflush() and ffclose(). If you try to include() or require() the file you've just created, it may not work properly even if there's no warning or error generated. Solution: