What does this mean? “Notice: ob_flush() [ref.outcontrol]: failed to flush buffer zlib output compression”

与世无争的帅哥 提交于 2019-12-11 07:45:40

问题


I got this error after running the following function:

function send_buffer(){
  ob_end_flush(); 
  ob_flush(); 
  flush(); 
  ob_start();
}

The main body of my website takes a few seconds to load, so I want to send the header first. But I got the following error: Notice: ob_flush() [ref.outcontrol]: failed to flush buffer zlib output compression


回答1:


You can't use gzip/zlib compression as well as flush.

Pick one or the other. I'd recommend gzip rather than flush.



来源:https://stackoverflow.com/questions/9353179/what-does-this-mean-notice-ob-flush-ref-outcontrol-failed-to-flush-buffe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!