【发布时间】:2013-06-27 05:23:39
【问题描述】:
警告:session_start() [function.session-start]:无法发送会话缓存限制器 - 标头
已经发送(输出开始于 /home/scalepro/public_html/Admin ................... 实际上没有空格和输出但仍然显示上述错误消息。
代码如下:
<?php
ob_start();session_start();
?>
<html>
<head>
</head>
<body>
<?php
require_once('../../Admin Panel/db.php');
if(isset($_POST['email']) && !empty($_POST['email']) && isset($_POST['password']) && !empty($_POST['password']))
{
$email = $_POST['email'];
$password = $_POST['password'];
$query="SELECT RemoteEmployeeFullName, RemoteEmployeeEmail, RemoteEmployeePassword FROM remoteemployees WHERE RemoteEmployeeEmail='".$email."' AND RemoteEmployeePassword='".$password."'";
$queryrun=$connection->query($query);
if($queryrun->num_rows > 0)
{
$_SESSION['email']=$RemoteEmployeeFullName;
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=REPLists.php">';
exit();
}
else
{
echo 'Email: <b>'.$email. '</b> or Password <b>'. $password.'</b> Is Not Typed Correctly Try Again Please!.';
echo '<META HTTP-EQUIV="Refresh" Content="5; URL= ../../spd/myaccount.php">';
exit();
}
}
else
{
echo '<META HTTP-EQUIV="Refresh" Content="5; URL= home/scalepro/public_html/spd/myaccount.php">';
exit();
}?>
</body>
</html>
【问题讨论】:
-
使用
@session_start(); -
已移除但问题依然存在
-
@Harjeet 你喜欢假装问题不存在?
-
@deceze :对不起,我没听懂你..
-
@Harjeet 哦,男孩... -_-;;好吧,停止这样做。解决你的问题,不要隐藏它们。