Seems to be a BOM problem
The error is: Cannot modify header information-headers already sent by ...
I'm sure there's no output before the header
Use EditPlus also remove BOM
Phpini There is also set to ON
I've also added Ob_start in front.
Not at all [img]http://www.111cn.cn/bbs/images/smilies/default/mad.gif[/img]
Excuse me, what else is the method?
Best answer [url=http://www.111cn.cn/bbs/space.php?username=qxhy123] link tag Qxhy123[/url]
[url=http://www.111cn.cn/bbs/space.php?uid=66514] link marker [img]http://www.111cn.cn/server/avatar.php?uid=66514& Size=small[/img][/url]require_once (' db.php ');
You have to comment out this sentence, it is estimated that the BOM in db.php is not removed. Your code doesn't have any problems with me.
d8888d Huitie Content-------------------------------------------------------
Require_once (' db.php ');
You have to comment out this sentence, it is estimated that the BOM in db.php is not removed. Your code doesn't have any problems with me.
d8888d Huitie Content-------------------------------------------------------
Look, sister, put the code out.
d8888d Huitie Content-------------------------------------------------------
Fireseno worked at Fri Mar 23:29:07 CST 2009
Session_Start ();
Require_once (' db.php ');
Print_r ($_post);
$num =mysql_query ("Select User,pass from user");
while ($run =mysql_fetch_assoc ($num)) {
if ($_post[' name ']=== $run [' User ']&&md5 ($_post[' name2 ']) = = = $run [' Pass ']) {
$_session[' userid ']=$_post[' username '];
Header ("location:lo.php");
Die ();
}else {
Header ("location:msg.php");
}
}
Ob_end_flush ();
?>
Copy Code
d8888d Huitie Content-------------------------------------------------------
DB is no problem.
Depressed!!
Just re-write the code once again good.
I wonder if it will go wrong ...
http://www.bkjia.com/PHPjc/632554.html www.bkjia.com true http://www.bkjia.com/PHPjc/632554.html techarticle as if BOM problem error is: Cannot modify header information-headers already sent by ... I'm sure there's no output in front of the header. EditPlus also remove BOM Phpini there is also set to on ...