Php 会话在Localhost中正常工作,但在CPANEL中不能正常工作
你好,我有一个登录系统,我在登录帐户时使用了会话。在 localhost的每项功能都正常工作,但在我的CPANEL中,它显示了以下内容 问题:Php 会话在Localhost中正常工作,但在CPANEL中不能正常工作,php,mysql,Php,Mysql,你好,我有一个登录系统,我在登录帐户时使用了会话。在 localhost的每项功能都正常工作,但在我的CPANEL中,它显示了以下内容 问题: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/scalepro/public_html/Admin Panel/Remote Emplo
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/scalepro/public_html/Admin Panel/Remote Employee/main.php:1) in /home/scalepro/public_html/Admin Panel/Remote Employee/main.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /home/scalepro/public_html/Admin Panel/Remote Employee/main.php:1) in /home/scalepro/public_html/Admin Panel/Remote Employee/main.php on line 20
<?php
session_start();
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;
header('Location:REPLists.php');
}
else
{
echo 'Email: <b>'.$email. '</b> or Password <b>'. $password.'</b> Is Not Typed Correctly Try Again Please!.';
header( "refresh:5;url=../../spd/myaccount.php" );
}
}
else
{
header( "refresh:1;url=../../spd/myaccount.php" );
}
?>
Warning:session_start()[function.session start]:无法发送会话缓存限制器-第3行/home/scalepro/public_html/Admin Panel/Remote Employee/main.php中已发送的头(输出从/home/scalepro/public_html/Admin Panel/Remote Employee/main.php:1开始)
警告:无法修改标题信息-标题已由第20行的/home/scalepro/public_html/Admin Panel/Remote Employee/main.php:1)中的/home/scalepro/public_html/Admin Panel/Remote Employee/main.php发送
检查在第一次之前没有任何空格/换行符检查在第一次之前没有任何空格/换行符从开始打开和结束php标记中删除额外的SAPCE,如:-
<?php session_start();
从开始打开和结束php标记中删除额外的SAPCE,如:-
<?php session_start();
这是你的main.php
文件吗?这是我的main.php文件这是你的main.php
文件吗?这是我的main.php文件