Uglybob1 Posted February 21, 2007 Share Posted February 21, 2007 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 refreshed the browser 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) { if($seconds < 0) out(__CLASS__."->".__FUNCTION__."(): Parameter seconds($seconds) can not be less then zero<br>"); else { $startCount = $count*$seconds; for(;$seconds>0;$seconds--) { if($display && $startCount > 0) echo " ".($startCount--); ob_flush(); flush(); sleep(1); } } } ...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! Link to comment https://forums.phpfreaks.com/topic/39421-php-iis-7-and-buffering/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.