PHP头条
热点:

好似是bom问题





好似是bom问题

错误是:Cannot modify header information - headers already sent by ……
我确定header前没有输出
用editplus也去掉bom
phpini那里也设置为on了
前面也加过ob_start
通通不行[img]http://www.111cn.cn/bbs/images/smilies/default/mad.gif[/img]
请问还有什么方法?


最佳答案[url=http://www.111cn.cn/bbs/space.php?username=qxhy123]链接标记qxhy123[/url]
[url=http://www.111cn.cn/bbs/space.php?uid=66514]链接标记[img]http://www.111cn.cn/server/avatar.php?uid=66514&size=small[/img][/url]require_once('db.php');
你把这句注释掉看看,估计是db.php里的bom没有去掉.你的代码在俺这里都没有任何的问题.



D8888D回贴内容-------------------------------------------------------
require_once('db.php');
你把这句注释掉看看,估计是db.php里的bom没有去掉.你的代码在俺这里都没有任何的问题.

D8888D回贴内容-------------------------------------------------------
妹子把代码贴出来看下哦

D8888D回贴内容-------------------------------------------------------


//fireseno worked at Fri Mar 06 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();

?>


复制代码

D8888D回贴内容-------------------------------------------------------
db也没有问题阿。。
郁闷!!
刚把代码重新写了一次又好了。。
不知道会不会一会又出错……


www.phpzy.comtrue/php/30003.htmlTechArticle好似是bom问题 好似是bom问题 错误是:Cannot modify header information - headers already sent by …… 我确定header前没有输出 用editplus也去掉bom phpini那里也设置为on了 前面也加过ob_start 通通不行[im...

相关文章

    暂无相关文章

PHP之友评论

今天推荐