您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP+mysql登陆有关问题和sesiion有关问题

2024/4/4 12:42:35发布14次查看
php+mysql登陆问题和sesiion问题
主页面报错了,错误是: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头
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product