Tuesday, 15 February 2011

php - Can't turn FastCGI output buffering off -



php - Can't turn FastCGI output buffering off -

this script outputs after 10 seconds instead of incrementally:

ob_start(); // start output buffer (if not enabled in php.ini) ($i = 0; $i < 10; $i++) { echo $i, ' '; ob_flush(); flush(); sleep(1); }

i have iis , fastcgi installed. in php.ini, have

zlib.output_compression = off output_buffering = off

in c:\windows\system32\inetsrv\config\applicationhost.config have

<add name="php_viafastcgi" path="*.php" verb="*" modules="fastcgimodule" scriptprocessor="c:\php\php-cgi.exe" resourcetype="unspecified" responsebufferlimit = "0"/>

all have seemingly no effect.

i need find right way turn off output buffering in fastcgi

thanks in advance

i had same issue, running fastcgi php, , got fixed putting next line in index file (from other files included), before else:

while (@ob_end_flush());

i found command in php docummentation. .

php fastcgi

No comments:

Post a Comment