Like a BOM problem _php tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.