![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
记得php里有个函数是打开缓冲区并停止输出是什么函数
好像只有ob_start,but如下
ob_start();
echo "cccc";
页面显示结果"cccc"并没有停止echo 的输出
请看phpe.net对 ob_start的解释
"
但是加上ob_start,就不会提示出错,原因是当打开了缓冲区,echo后面的字符不会输出到浏览器,而是保留在服务器,直到你使用flush或者ob_end_flush才会输出,所以并不会有任何文件头输出的错误!
"
http://www.phpe.net/articles/123.shtml
php.net 的解释
This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer
http://cn.php.net/manual/zh/function.ob-start.php
“no output is sent from the script ”但是事实不合啊?是我服务器有问题吗??
提问者:buzzard 08-22 15:03
答复

