php – 注意:ob_end_flush():无法发送zlib输出压缩缓冲区(1)

前端之家收集整理的这篇文章主要介绍了php – 注意:ob_end_flush():无法发送zlib输出压缩缓冲区(1)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我对localhost没有任何问题.但是当我在服务器上测试我的代码时,每一页的结尾都会看到这个通知.

我的代码

<?PHP
ob_start();
include 'view.PHP';

$data = ob_get_contents();
ob_end_clean();
include 'master.PHP';
ob_end_flush();  // Problem is this line
它在PHP.ini中关闭zlib.output_compression时解决

zlib.output_compression =关闭

原文链接:https://www.f2er.com/php/137028.html

猜你在找的PHP相关文章