代码改变世界

随笔分类 -  PHP错误调试debug

cannot modify header information - headers already sent by ,php页面报错debug

2012-06-30 16:55 by java环境变量, 330 阅读, 收藏,
摘要: 信息的时候经常提示:cannot modify header information - headers already sent by (......)。其实已经实现需要的效果了,就是这个错误信息看着不爽,网上找了很多办法,综合使用得到的解决方法是1在页面顶部的php标签中加入ob_start();2在返回的信息下面加入ob_end_flush();这样就可以屏蔽错误信息的现实了另外转一下其他人的方法,也许在其他情况下也会有效If you got this message: "Warning: Cannot modify header information - headers a 阅读全文