From: [EMAIL PROTECTED] Operating system: linux PHP version: 4.0.5 PHP Bug Type: Filesystem function related Bug description: filesize on newly made/just opened file weirdness Hiya run this test script and and watch the output differ depending on using filesize or not $fp = fopen('file.test', "a+b"); //(un)comment this line filesize('file.test'); fwrite($fp, "boe"); fclose($fp); $fp2 = fopen('file.test', "a+b"); fseek($fp2, 0); echo fread($fp2, filesize('file.test')); unlink('file.test'); Greetz, Wico -- Edit Bug report at: http://bugs.php.net/?id=10993&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]