这是什么提示? header()、session_start();等之前不能有任何输出,包括空格。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 header()、session_start();还有setcookie <? require("config.php"); if($LoginName==""){echo"<meta http-equiv=refresh content=7;URL='javascript:history.back(1);'><br><br><br><br><font size=3>请输入<font color=ff0000>用户名</font></font><br><a href=javascript:history.go(-1);>返回</a><br><br><br>若未注册请点<a href=reg.php>[这里注册]</a>";exit;} if($Password==""){echo"<meta http-equiv=refresh content=5;URL='javascript:history.back(1);'><br><br><br><br><font size=3>请输入<font color=ff0000>用户密码</font></font><br><a href=javascript:history.go(-1);>返回</a>";exit;} $user_array=file($user_file); $user_all=count($user_array); for($i=1; $i<$user_all; $i++) {list($name,$pwd,$email,$tel)=explode("|",$user_array[$i]); if ($LoginName == $name){if ($Password != $pwd){echo"<br><br><br><br><font size=3 color=ff0000>用户名与密码不匹配!</font>";exit;}break;} if (($LoginName != $name) and ($i==$user_all-1)){echo"<br><br><br><br><font size=3>用户“<font color=ff0000>{$LoginName}</font>”不存在!</font>";exit;} }setcookie("username",$LoginName,0);setcookie("userpwd",$Password,0);echo $username; echo "登陆成功!";?>这是整个文件代码,大家帮看看问题出在哪里? Cannot encode non-existent session.怎么回事? 如何得到网站的缩略图? 上海全新网络公司发展迅速,在次寻找PHP高手 赋值问题 求救PHP 投票系统IP问题请教 如何检测浏览者机子的分辨率,请高手赐教! 我终于在win2000下把php4和mysql搞定了! 关于支付宝接口的一个成功返回问题,求教各位大神~~ php如何获取$.post传过来的值 在线求助--服务器更换后,php运行出错! 这个错误识什么意思??
<?
require("config.php");
if($LoginName==""){echo"<meta http-equiv=refresh content=7;URL='javascript:history.back(1);'><br><br><br><br><font size=3>请输入<font color=ff0000>用户名</font></font><br><a href=javascript:history.go(-1);>返回</a><br><br><br>若未注册请点<a href=reg.php>[这里注册]</a>";exit;}
if($Password==""){echo"<meta http-equiv=refresh content=5;URL='javascript:history.back(1);'><br><br><br><br><font size=3>请输入<font color=ff0000>用户密码</font></font><br><a href=javascript:history.go(-1);>返回</a>";exit;}
$user_array=file($user_file);
$user_all=count($user_array);
for($i=1; $i<$user_all; $i++) {
list($name,$pwd,$email,$tel)=explode("|",$user_array[$i]);
if ($LoginName == $name){if ($Password != $pwd){echo"<br><br><br><br><font size=3 color=ff0000>用户名与密码不匹配!</font>";exit;}break;}
if (($LoginName != $name) and ($i==$user_all-1)){echo"<br><br><br><br><font size=3>用户“<font color=ff0000>{$LoginName}</font>”不存在!</font>";exit;}
}setcookie("username",$LoginName,0);
setcookie("userpwd",$Password,0);echo $username; echo "登陆成功!";
?>这是整个文件代码,大家帮看看问题出在哪里?