Ken - The PHP directive / PHP.INI setting is of no use, as the webserver is compressing and buffering the output.
You might want to consider turning the gzip on and off depending on the location. According to http://wiki.nginx.org/NginxHttpGzipModule gzip on | off is supported down to a location level.
Did you need to change the fastcgi_buffer_size variable? Best to change one variable at a time and figure what causes / fixes the problem (and change back to see if the old symptoms reappear).
Regards,
Shri
----- Original Message -----
From: Ken Chen
To: nginx@sysoev.ru
Sent: Thursday, April 30, 2009 2:03 AM
Subject: Re: php flush() are not effective.
hi Shri,
Thanks a lot! It works.
I change the nginx configuration to:
fastcgi_buffer_size 4k;
gzip off;
And PHP script: