경고 작동하지 :으로 session_start()를 [function.session 스타트] : 세션 캐시 리미터 보낼 수 없습니다 - 이미 전송 헤더으로 session_start가의 cPanel에서 제대로
를 (출력/홈/scalepro/public_html을/관리자에서 시작 ... .......................... 실제로 공간과 출력이 없지만 위의 오류 메시지가 계속 나타납니다.
다음 코드는 다음과 같습니다. :
<?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();를 사용하십시오. –
해당 제거하지만 여전히 prob가 있습니다. –
@Harjeet 문제가 존재하지 않는 것처럼 보이기를 원하십니까? – deceze