关于使用 session_start 出现的 Warning: session_start(): Cannot send sessioncache limiter - 问题的解决
2006-03-10 18:25
1026 查看
我在自己的机子上运行的很好的程序在上传到一个申请的服务器上时,竟然出现了下面的问题!!
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/users/hfly.21windows.cn/admin/login.php:2) in /www/users/hfly.21windows.cn/admin/login.php on line 4
在经过求助搜索查找之后,得出结论是在session_start()前不能有任何的输出!即使是空格或回车都不行·!!!!
在时我打开文件发现真的在<?之前一个空行,将其删除果然问题解决了!!!
修改前:
==========================================
1行
2行<?
3行 Session_Start();
4行.....
5行?>
==========================================
修改后:
==========================================
1行<?
2行 Session_Start();
3行.....
4行?>
==========================================
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/users/hfly.21windows.cn/admin/login.php:2) in /www/users/hfly.21windows.cn/admin/login.php on line 4
在经过求助搜索查找之后,得出结论是在session_start()前不能有任何的输出!即使是空格或回车都不行·!!!!
在时我打开文件发现真的在<?之前一个空行,将其删除果然问题解决了!!!
修改前:
==========================================
1行
2行<?
3行 Session_Start();
4行.....
5行?>
==========================================
修改后:
==========================================
1行<?
2行 Session_Start();
3行.....
4行?>
==========================================
相关文章推荐
- php session_start()关于Cannot send session cache limiter - headers already sent错误解决方法
- session_start()关于Cannot send session cache limiter - headers already sent错误解决方法
- session_start()关于Cannot send session cache limiter - headers already sent错误解决方法
- php session_start()关于Cannot send session cache limiter - headers already sent 错误解决方法
- php session_start()关于Cannot send session cache limiter - headers already sent错误解决方法
- 解决php中Cannot send session cache limiter 的问题的方法
- php session_start()关于Cannot send session cache limiter - headers already 错误
- Warning:session_start():cannot send session cache limiter -headers already sent(output started) at
- Warning: session_start() [function.session-start]: Cannot send session cache limiter
- 解决Cannot send session cache limiter - headers already sent问题
- Warning:session_start():Cannot send session cache limiter - headers already sent by
- 关于Cannot send session cache limiter - headers already sent错误解决方法 【转】
- 关于Cannot send session cache limiter - headers already sent错误解决方法
- php session_start()关于Cannot send session cache limiter - headers
- 解决php中Cannot send session cache limiter 的问题的方法
- 关于Cannot send session cache limiter - headers already sent错误解决方法
- 解决php中Cannot send session cache limiter 的问题的方法
- 解决php中Cannot send session cache limiter 的问题的方法
- Warning: session_start() [function.session-start]: Cannot send session cache limiter
- Warning: session_start() [function.session-start]: Cannot send session cache limiter