Home > php教程 > php手册 > 好似是bom问题

好似是bom问题

WBOY
Release: 2016-06-13 09:53:10
Original
1156 people have browsed it




好似是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也没有问题阿。。
郁闷!!
刚把代码重新写了一次又好了。。
不知道会不会一会又出错……


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template