Bug #6943 Updated: flush() doesn't flush before the end of the PHP script exuction

From: Date: Wed, 22 May 2002 14:19:25 +0000
Subject: Bug #6943 Updated: flush() doesn't flush before the end of the PHP script exuction
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8221@lists.php.net to get a copy of this message
ID: 6943 Updated by: mrusso69@hotmail.com Reported By: denis.roux@alcatel.fr Status: Closed Bug Type: Output Control Operating System: Windows NT 4.0 PHP Version: 4.0.2 New Comment: To bring this back from the dead! I have been searching on how to fix this for 2 days now. I understand that it's probably a problem with the webserver, and apologize for putting this here, but does anybody know how to get around this? I have a php script that I'm running from a command line, and the output doesn't show till the script ends. The problem is, this script doesn't end. It keeps running every 15 minutes. I'm sorry that this isn't a php problem, but a webserver problem, but I'm out of ideas on how to fix it :( Thanks Previous Comments: ------------------------------------------------------------------------ [2000-11-09 06:21:57] hholzgra@php.net this is most likely your webserver thats buffering the whole output from php and doesn't send it out before script completion ------------------------------------------------------------------------ [2000-09-29 17:02:26] denis.roux@alcatel.fr <html> <head> <title>Exemple</title> </head> <body> <? echo ("script PHP"); echo "should be printed immediatly<br>"; flush(); ?> hello<br> <?> sleep(3); echo "in fact, printed in the same time that, i.e. after the 3sec. delay !!!"; </script> </body> </html> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=6943&edit=1

« previous php.bugs (#8221) next »