Function of ob_start ()

Source: Internet
Author: User
Enabling the output cache of ob_start () is a very important function in PHP. To implement the cache, generating static pages is inseparable from the dynamic and static conversion of ob_start...

Generally, ob _ **** is mostly used to write static html files,
And control the output.

Ob_xxxx is the PHP output control function group.

By default, PHP directly outputs content to the standard output. That is to say, PHPProgramOutput data while running. When the content is large, the output device cannot be obtained or the device is suspended due to network problems. When the output cache is enabled, the PHP output is redirected to the memory. After the program ends, it is output to the client.

TheCodeDo not show prepaid servers
Ob_get_contents (), ob_end_flush (), or flush ()
Can be displayed only when

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.