<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I've noticed this too. Can you retry after turning 
gzip off? Worked in my case. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>We have some scripts which run for 20-30 mins, 
rebuilding some large databases and they need to be run isolated from the main 
webserver which has gzip on.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,<BR>Shri</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ken73.chen@gmail.com href="mailto:ken73.chen@gmail.com">Ken Chen</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=nginx@sysoev.ru 
  href="mailto:nginx@sysoev.ru">nginx@sysoev.ru</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, April 29, 2009 11:20 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> php flush() are not 
  effective.</DIV>
  <DIV><BR></DIV>Hi all,<BR><BR>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. <BR><BR>&lt;?php<BR><BR>ob_flush();<BR>echo "The first 
  line&lt;br /&gt;";<BR>flush();<BR>sleep(2);<BR><BR>for ($i=10; $i&gt;0; 
  $i--)<BR>{<BR>&nbsp;&nbsp;&nbsp; echo $i . "&lt;br 
  /&gt;";<BR>#&nbsp;&nbsp;&nbsp; echo str_repeat(" 
  ",8192);<BR>&nbsp;&nbsp;&nbsp; ob_flush();<BR>&nbsp;&nbsp;&nbsp; 
  flush();<BR>&nbsp;&nbsp;&nbsp; 
sleep(1);<BR>}<BR>ob_end_flush();<BR>?&gt;<BR></BLOCKQUOTE></BODY></HTML>