主页面报错了,错误是:warning: session_start() [function.session-start]: cannot send session cookie - headers already sent by (output started at f:\apache http server\appserv\www\classweb\classweb.php:8) in f:\apache http server\appserv\www\classweb\classweb.php on line 7
warning: session_start() [function.session-start]: cannot send session cache limiter - headers already sent (output started at f:\apache http server\appserv\www\classweb\classweb.php:8) in f:\apache http server\appserv\www\classweb\classweb.php on line 7
/**********主页面代码classweb.php**************/
nbsp;html>
精品课程网
精品课程网
用户名:
密 码:
立即注册
欢迎
退出
/**************跳转登陆代码denglu.php*****************/
上面的代码有点多,我知道大家看起来很烦,但是我真的不知道怎么搞的了,希望帮忙一下啊,为找不到原因了。谢谢了!!
顺便帮我看一下跳转的登陆页面代码 有没有错误,谢谢了,真的谢谢!!
------解决思路----------------------
把 放在文件开始处
session_start() 之前不能有任何输出
------解决思路----------------------
session_start(); 之前不能有任何輸出。把session_start(): 放在文件最前可解決此問題。
------解决思路----------------------
有bom头吧,用编辑器保存为utf-8 无bom格式。
------解决思路----------------------
更改文件编码,改成utf-8无bom头
