The OB in PHP is off, and I want to ask under the circumstances of the shutdown, an echo is passed through the PHP buffer to the system server buffer to the browser buffer. What if the process is turned on? Or did I get the wrong idea?
Reply content:
The OB in PHP is off, and I want to ask under the circumstances of the shutdown, an echo is passed through the PHP buffer to the system server buffer to the browser buffer. What if the process is turned on? Or did I get the wrong idea?
obRefers to the output control, does not mean the buffer, when opened ob , you can control php when the output of the content sent to the browser.
Give you an example:
Not open ob : echo '1' send '1' to browser echo '2'send '2' to browser
Open ob : echo '1' do nothing echo '2' do nothing flushsend '12' to browser
Open OB, the following program will have an output effect
"; //输出内容 echo str_pad('',1025); //输出生成的字符串,如果字符串过短不会有效果。 ob_flush(); //发送缓冲区数据 flush(); //刷新缓冲区 sleep(1); //暂停1秒}echo "done."; //输出操作完成标记ob_end_flush(); //发送缓冲区数据,并关闭缓冲区?>