ID: 19711 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows 2000 Server PHP Version: 4.2.2 New Comment:
Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. fflush() is for flushing buffered fwrite() requests like flush() flushes echo or print outputs to standard output what you are looking for is http://php.net/outcontrol Previous Comments: ------------------------------------------------------------------------ [2002-10-02 07:07:46] [EMAIL PROTECTED] Also tested this under IIS and Win2k Server, same problem. ------------------------------------------------------------------------ [2002-10-02 06:44:21] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19711&edit=1
