PHP出现"Cannot modify header information"警告的解决方法

来源:互联网 发布:超简单 mp3播放软件 编辑:程序博客网 时间:2024/04/27 23:53
       PHP页面错误,提示信息为“Warning: Cannot modify header information – headers already sent by (output started at XXXXXXXXXX)”。
       解决方法为在当前正在使用的“php.ini”配置文件中,找到“output_buffering”这一项,将其值由原来的“output_buffering=Off”改为“output_buffering=On”或“output_buffering=4096”,最后重新启动Apache就行了。
0 0
原创粉丝点击