简体   繁体   English

PHP ob_flush(); 在IE10中不起作用

[英]PHP ob_flush(); doesn't work in IE10

I'm having a problem with PHP ob_flush(); 我在使用PHP ob_flush();遇到问题ob_flush();

Seems like it does not work only in IE10. 似乎它仅在IE10中不起作用。

gzip and caching are disabled on server, it's works everywhere except IE10. gzip和缓存在服务器上被禁用,除IE10之外,它均可在所有地方使用。

If somebody has any idea how to solve this mystery i would be grateful! 如果有人对解决这个谜有任何想法,我将不胜感激! :) :)

Thank you! 谢谢!

If your output is less than 256 bytes, this might be the problem. 如果您的输出少于256个字节,则可能是问题所在。

Quote from the flush() documentation : 引用flush()文档

Some versions of Microsoft Internet Explorer will only start to display the page after they have received 256 bytes of output, so you may need to send extra whitespace before flushing to get those browsers to display the page. 某些版本的Microsoft Internet Explorer仅在收到256字节的输出后才开始显示页面,因此您可能需要在刷新之前发送额外的空格以使这些浏览器显示页面。

发送header("Content-type: text/html;charset=utf-8;");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM