php flush() are not effective.
Ken Chen
ken73.chen at gmail.com
Wed Apr 29 19:20:12 MSD 2009
Hi all,
I am trying to flush content before the end of PHP script. With below
script, it works under lighttpd, but not work after changing to nginx.
<?php
ob_flush();
echo "The first line<br />";
flush();
sleep(2);
for ($i=10; $i>0; $i--)
{
echo $i . "<br />";
# echo str_repeat(" ",8192);
ob_flush();
flush();
sleep(1);
}
ob_end_flush();
?>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090429/9c2396a9/attachment.html>
More information about the nginx
mailing list