转载

Cannot modify header information – headers already sent by

Message: Cannot modify header information – headers already sent by (output started at E:\AppServ\www\myci\application\controllers\hello.php:18)
在用CI框架做session验证登陆的时候出现这个问题,原因是不能在header之前打印
把C盘windows下的php.ini里的output_buffering=off改成on就行了

Leave a Reply

学习的梦想

锤炼的彩色