BluRayCD Forum

 找回密码
 立即注册【分享大片】
查看: 605|回复: 0
收起左侧

[交流分享] 两个PHP的Warning及解决方法

[复制链接]

410

主题

177

回帖

1万

积分

Forum CEO

金币
2568 枚
体力
11800 点
kmxmxy 发表于 2011-8-5 07:00:06 | 显示全部楼层 |阅读模式
1. Cannot modify header information
  1. PHP Warning: Cannot modify header information – headers already sent by (output started at yourfiles)
复制代码
这是因为设置的头文件信息溢出造成的。解决方法:将output_buffering 设为 on 就可以了

2. output handler ‘ob_gzhandler’ conflicts with ‘zlib output compression’
  1. PHP Warning: ob_start() [ref.outcontrol]: output handler ‘ob_gzhandler’ conflicts with ‘zlib output compression’ in yourfiles
复制代码
这是因为PHP中Zlib模块设置错误造成的,将zlib.output_compression这一行注释掉就可以了。这里需要指出的是PHP5自带GZIP模块的,不需要另外加载。
您知道吗,申请VIP会员可以免回复下载,无广告骚扰, 点此处申请

本版积分规则

小黑屋|手机版|Archiver|4K蓝光论坛

GMT+8, 2024-4-30 04:45

Copyright © 2001-2021, Gadaddy Cloud.

快速回复 返回顶部 返回列表