发新话题
打印

Cannot modify header information - headers already sent by 问题的解决

Cannot modify header information - headers already sent by 问题的解决

今天在整FreakAuth_light的时候一直提示
Cannot modify header information - headers already sent by----------
找个很多方法~最后
发现是BOM的原因,
因为utf-8编码文件含有的bom,而php4,5都是不支持bom的。去掉bom,问题就解决了
可以用 ultraedit  打开一个新文件然后另存为时选择“utf-8 无BOM即可。
以后遇到类似问题先用这个方法吧~编码问题先排除掉~在去找别的原因。少走弯路~



[ 本帖最后由 chenxihacn 于 2008-4-18 16:41 编辑 ]
本帖最近评分记录
  • Hex 威望 +3 加入常见问题解答 2008-4-18 17:36

TOP

学习了~~不过我还没遇到过

一直用gbk的~~

TOP

此问题属于常见问题,加入常见问题解答,加分奖励。
QQ: 49489680
MSN: zhaochang_tj AT hotmail DOT com

TOP

还没用FreakAuth,不过学习了。。
CodeIgniter,JQuery,Ext
http://www.girlsgroup.cn

TOP

发新话题