|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-02 07:07 UTC] thomasdkeller at web dot de
[2002-10-02 07:08 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Jan 17 17:00:01 2026 UTC |
Hi there! It _may_ be a bug, but i'm not sure, if I have anything forgot to write down, nevertheless the following code --- <?php for($i=0;$i<1000;$i++) { echo "foo "; } $fp = fopen("tmp.txt","w+"); fflush($fp); fclose($fp); ?> --- does _not_ work like my intention was (create new file called tmp.txt, flush output (1000 times "foo ") into it and close the file). Instead of this it takes longer than normal to execute the script, then it flushes the output to the browser, creates a new file and leaves it empty (obviously fflush returns "1" for successful). I've searched the internet, didn't found anything. Also your documentation has no example for this function (if I coded it wrong). My system: Apache 1.3.26. PHP (with standard Out-Of-The-Box modules) as module, all read/ write access Thanks in advance, Thomas Keller.