php-windows Digest 27 Feb 2009 10:56:53 -0000 Issue 3580 Topics (messages 29194 through 29194):
Echo is buffered despite ob_implicit_flush(1)! Help please 29194 by: Pontus Edvardsson Administrivia: To subscribe to the digest, e-mail: php-windows-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-windows-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-wind...@lists.php.net ----------------------------------------------------------------------
--- Begin Message ---Hi, I've been spending the last few days Googling a lot to find a sollution to this problem, and have found lots of things I've tried to no avail. My little program (below), radically simplified ofcource :), that used to run fine on Vista/PHP5 but suddelnly changed behaiviour. I want it to echo the text, wait a second, echo the next etc. Now it buffers the output and writes it all to the screen at the same time. I've read on php.net about IE needing 256 bytes before it writes anything two screen, tried all different flush() commands, configured it in php.ini as well as using ob_ in my code, but nothing seems to work?! Using Win2000 and php4 the code below works... How do I accieve thesame with Vista and php5?? My environment; Vista Enterprise Abyss X1 Webserver 2.6 PHP 5.2.8 // Needed in Win2k with PHP4 to immedeately output to browser window. Does not work in Vista/PHP5. echo str_repeat(" ", 256)."<PRE>"; flush(); ob_implicit_flush(1); echo "Trace1= ".date(DATE_RFC822)."<br>"; sleep (1); echo "Trace2= ".date(DATE_RFC822)."<br>"; sleep (1); echo "Trace3= ".date(DATE_RFC822)."<br>"; Best Regars, Pontus _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx
--- End Message ---