What are the common scenarios of ob _ related functions? & nbsp; how can I use it? I have not obtained an address for relevant information ..................., you asked too much in general. I think you want to ask ob_start. Ob _ related functions
Ob _ related functions
In what scenarios? how?
Is there any relevant information?
Find the address ...................
------ Solution --------------------
You asked too much in general. I think you want to ask ob_start.
Http://cn2.php.net/ob_start
------ Solution --------------------
Here is an example.
You know that there will be a response for an http request. When you install some open-source programs, you will find that they dynamically display the installation progress:
Installing xxx...
Installation completed (x seconds later)
Checking directory and file permissions...
Check completed. The permission is normal... (x seconds later)
Each row is output gradually, rather than once. This is actually using the server push method. There are also some chat rooms using php. All are implemented using the server push method.
This requires the use of ob_get_contents, flush, ob_flush and other functions, so that the server does not buffer the results and outputs the results in real time. If you do not set anything, it is the ob_start state by default.
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