用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2953|回复: 3
收起左侧

[已解决] 在用hook的时候 里面session_start报错

[复制链接]
发表于 2011-8-26 10:49:21 | 显示全部楼层 |阅读模式
在我的类文件的第一行写上session_start都报错
A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at F:\xampp\htdocs\ci\application\controllers\test.php:160)

Filename: hooks/myclass.php

Line Number: 1
请问 这个怎么解决呢,是hooks之前有输出吗?
发表于 2011-8-26 11:00:24 | 显示全部楼层
请把你的文件设置为UTF-8无BOM格式
 楼主| 发表于 2011-8-26 14:34:51 | 显示全部楼层
文件都检查过了,前面没有输出啊。。。
发表于 2011-8-26 14:35:49 | 显示全部楼层
F:\xampp\htdocs\ci\application\controllers\test.php:160
这里说 160 行有输出。
肯定是有输出了,你检查下吧,PHP 不会乱报错的。

本版积分规则