How to use Ob_flush () and flush () for PHP
Note: the Ob_flush () and flush () functions are generally used together, in order to Ob_flush () first, then flush (), and their function is to flush the buffer.Here's a specific next time to use the
English original: http://msdn.microsoft.com/zh-cn/library/cc511588 (en-us). aspxThe Enterprise Library Cache Application Block allows developers to merge a local cache in an application that supports in-memory caches, and optionally back-end storage
Before using Ob_flush (), make sure that the previous content is 4069 characters large enough. Some Web server output_buffering default is 4069 characters or larger, that is, the output must reach 4069 characters to flush the output buffer, in order
Before using ob_flush (), make sure that the preceding content is 4069 characters in size. The output_buffering of some Web servers is 4069 characters or larger by default, that is, the output content must reach 4069 characters before the server
Differences between flush and ob_flush in php (2011-11-11:3) protocol phpflushob_flush differences Miscellaneous: PHPbuffer ---- flush () buffer is a memory address space, in Linux, the default size is generally 4096 (1 kb), that is, a memory page.
My basic environment is nginx1.6.2+php5.3.To do a line-by-row output, the use of Ob_flush to try the N method does not work, such as the following code:
Ob_start ();for (;;){echo " ...";Ob_flush ();Flush ();Sleep (1);}?>
Google a lot of writing is
Simply talk about the difference between Ob_flush and flush in PHP, 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
Buffer ---- flush () buffer is a memory address space. The default size of Linux is generally 4096 (1 kb), that is, a memory page. It is mainly used for data transmission between devices with Different Storage speeds or devices with different
Buffer----Flush ()
Buffer is a memory address space, the Linux system default size is generally 4096 (1KB), that is, a memory page. It is primarily used to store data between devices that are out of sync or between devices with different priority
buffer----flush () Buffer is a memory address space, and the Linux system default size is typically 4096 (1KB), which is a memory page. It is primarily used to store data between devices that are out of sync or between devices with different
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.