PHP Ob_flush and Flush

Source: Internet
Author: User
PHP Ob_flush and Flush

In php.ini
output_buffering = off off PHP cache
Implicit_flush = Off php will not be output to the browser immediately. If on, the equivalent of each echo immediately executes a flush

The output_buffering is equivalent to a cushion. There is also a layer of buffering between PHP and the browser. The Ob_flush function is equivalent to writing PHP buffers to PHP, such as the browser output layer that buffer, of course, if Output_buffering=off, that is, the equivalent of no PHP buffer, directly written to PHP and browser buffer. The flush function is to buffer the PHP output layer immediately to the browser, output on the browser.

Output_buffering=off is equivalent to performing a ob_flush for each echo.

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.