开发需要接触php,感觉上手也挺快,在调试php中的session时总是出错,
warning: session_start(): cannot send session cache limiter - headers already sent (output started at xxx:2) in .php on line 3
类似错,对照源码好像自己没有哪里写错.
php开始符号session在开始前不能有任何字符输出,
header()是一样的
将代码提前,去除前面的空格,就可以了.
-------------------正确
-------------------错误
http://www.bkjia.com/phpjc/509216.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/509216.htmltecharticle开发需要接触php,感觉上手也挺快,在调试php中的session时总是出错, warning: session_start(): cannot send session cache limiter - headers already sent (output sta...