注意:ob_end_flush(): 未能在 zlib 输出压缩 (1) 中发送缓冲区 [英] Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in
本文介绍了注意:ob_end_flush(): 未能在 zlib 输出压缩 (1) 中发送缓冲区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在本地主机上没有任何问题.但是当我在服务器上测试我的代码时,每页的末尾我都会看到这个通知.
I don't have any problem on localhost. but when i tested my codes on server, end of every page i see this notice.
我的代码:
<?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 = 关闭
这篇关于注意:ob_end_flush(): 未能在 zlib 输出压缩 (1) 中发送缓冲区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文