Partner and Community Forums
PHP, IIS7 and Buffering/Flushing
Last post Feb 28, 2007 01:28 AM by rickjames
Feb 22, 2007 09:24 PM|Darthbob|LINK
Hello, I currently installed php on Windows Vista with IIS 7.0. For what I am using, everything seems to be working as they did in IIS 6 except for buffering/flushing. I have a small timer which sends the output to the browser and flushes every second
with a count down, but it seems it does not flush with IIS 7 until the entire page is finished. I still have the IIS 6 box up which is running the exact same code and I even copied over the same php.ini file so I am thinking it has to be something with IIS
7? Has anyone run into this problem and/or know of a fix? Here is the code if need be...
private function pause($seconds = 1, &$count, $display = FALSE)
$startCount = $count*$seconds;
if($display && $startCount > 0)
echo " ".($startCount--);
...so basically it outputs something like 5 4 3 2 1, flushing after each number. But in IIS 7 it doesn't flush until the entire page is written?
Thanks in advance for your time!
Feb 23, 2007 12:16 PM|bills|LINK
Feb 24, 2007 12:50 AM|Darthbob|LINK
Hi Bills, thanks for replying.
Sorry for not mentioning. I have tried with both Isapi and I’m currently using CGI. I'm not running Fast CGI, but after reading your question about Fast CGI I enabled the setting...
fastcgi.impersonate = 1;
...just to see if it might make any difference, but unfortunately it didn't.
I'll be happy to try any thoughts you might have.
Feb 28, 2007 01:28 AM|rickjames|LINK
You might want to checkout
http://forums.iis.net/thread/1589951.aspx. We are currently testing making this configurable.