Deep understanding of the difference between Ob_flush and flush, Ob_flushflush
Ob_flush/flush's description in the manual, is to refresh the output buffer, and also need to be used, so it will cause many people confused ...
In fact, the two of them are different objects, in some cases, flush does not do anything at all.
The Ob_* series function is the output buffer that operates PHP itself.
So, Ob_flush is the buffer that refreshes PHP itself.
Flush, strictly speaking, this only works when PHP is installed as an Apache module (handler or filter). It is a buffer that refreshes the webserver (which can be considered specifically Apache).
Under Apache module's SAPI, flush will invoke Sapi_module's flush member function pointer indirectly, calling Apache's Api:ap_rflush to flush Apache's output buffer, and of course the manual says, There are some Apache other modules that may change the result of this action:
Some Apache modules, such as Mod_gzip, may make their own output caches, which will result in the flush () function producing results that are not immediately sent to the client browser. Even the browser will cache the received content before it is displayed. For example, the Netscape browser caches content before it accepts the start of a newline or HTML tag, and does not display the entire table until the tag is accepted.
Some versions of Microsoft Internet Explorer do not start to display the page until 256 bytes are accepted, so you must send some extra spaces to let these browsers display the page content. So, the correct use of the two is the order. First Ob_flush, then flush, of course, in other sapi, do not call flush can also, only to ensure that your code portability, recommended for use.
What is the difference between flush and ob_flush in PHP?
Www.laruence.com/2010/04/15/1414.html
The difference between blush and flush
Flush: Refers to blush
Blush: Focus on shame and blush
Flush: Refers to the blush, is simple physiological reaction blush: Focus on the shame and blush, emphasizing psychological response.
http://www.bkjia.com/PHPjc/902436.html www.bkjia.com true http://www.bkjia.com/PHPjc/902436.html techarticle In- depth understanding of the difference between Ob_flush and flush, Ob_flushflush Ob_flush/flush described in the manual, is to refresh the output buffer, and also need to be used in a companion, so it will cause many people to confuse it ...