We immediately used php-flush to “empty” the page as soon as it was clicked, and also to send navigation and the main components of the page so that the page would display almost instantly, although sometimes the content may take a long time to load.
It works very well.
We recently upgraded from IIS 7.0 to 7.5, and now the flash does not work. When investigating the problem, we turned off compression for both static and dynamic files. We also disabled output caching.
We also disabled zlib compression and buffering output in php.ini.
To check the problem, we have the following script
@ini_set("output_buffering", "Off"); @ini_set('implicit_flush', 1); @ini_set('zlib.output_compression', 0); ob_start(); echo "starting...<br/>\n"; for($i = 0; $i < 5; $i++) { print "$i<br/>\n"; ob_end_flush(); ob_flush(); flush(); ob_start(); sleep(2); } print "DONE!<br/>\n";
The browser simply shows the download status (regardless of what is in any browser, in IE it looks like an animated Ajax gif, in Firefox the tab will say “Connection ...”) for 10 seconds, and then all of a sudden output.
We tried to use different combinations of flash and ob_flush and ob_end_flush based on similar questions on this site. None of them work. Is there a way to do IIS / PHP to clear the data?
Jeff davis
source share