About the enhanced use of the callback Ob_start () function _php Tutorial

Source: Internet
Author: User
Problem
About the enhanced use of callback functions.
Workaround
When the structure of the program is more complex, more introduction and no rule reference. There is an echo ' aaaa ' in a file; Will affect the program output.

function Ob_gzip ($content)

In such a callback function how to judge the program has echo print and all the non-HTML output?


Reference answer
Try not to output the content in the callback function Ah, my more than 10 k common.class.php file does not let it have a space, lest the call of the time of the problem.
Reference answer
To make a regular reference.
Single inlet, shallow construction
Reference answer
I want to limit it to the echo output .... Be sure to have it output in HTML. To ensure that the procedure can be performed in a healthy state.
Reference answer
Ob_start ()
That's what this is about.
Reference answer
Write a function for me ...
Reference answer
The Grass Bird learns
Reference answer
Oh ah, study the
Reference answer
Direct file start Ob_start (); It's okay.
Reference answer
Ob_start (); Now that there is, it is still not possible to judge when Echo happened and how to abort it.

http://www.bkjia.com/PHPjc/632602.html www.bkjia.com true http://www.bkjia.com/PHPjc/632602.html techarticle the problem with the enhancement of the callback function. Solution when the program structure is more complex, introduced and no rule reference. There is an echo ' aaaa ' in a file, which will affect the program output ...

  • 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.