Re: problem with flush in my webserver
| From: | Daniel Clark | Date: | Mon, 07 Jun 2004 11:52:15 +0000 |
| Subject: | Re: problem with flush in my webserver | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4627@lists.php.net to get a copy of this message | ||
I found this on the net.
If you are having trouble makeing flush(); or ob_flush(); work the way you want, try both of them.
Using PHP 4.3.3RC1 there was no effect using flush() or ob_flush(), however a combination of both
gave me perfect results.
>>hai,
>>i've run this code with my server.not worked but while runnint in other
>>webservers working properly. what problem will be associated with my
>>webserver. all the configurations are ok.not only for this code given below.
>>generally flush() is not working.
>>
>>
>><?PHP
>>echo str_repeat(" ", 256);
>>$i = 10;
>>while($i > 0){
>>echo $i." bottle".($i != 1 ? 's' : '')." of beer on the
>>wall, ".$i."
>>bottle".($i != 1 ? 's' : '')." of beer. Take one down and pass
>>it around,
>>".(--$i)." bottle".($i != 1 ? 's' : '')." of beer on
>>the wall<br>\n";
>>flush();
>>sleep(5);
>>
>>}
>>?>
>>
>>
>>with luv
>>siva