What are the common scenarios of ob _ related functions? & nbsp; how can I use it? I have not requested the address for relevant information ................... ------ solution ------------------ you asked too much in general. I think you want to ask ob_start. Functions related to cn2.php. netob_start-ob _
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.