-3
我知道这是一个非常普遍的问题,我有很多用Google搜索这一点,但仍然没有成功。我收到此错误
Warning: Cannot modify header information - headers already sent by (output started at G:\xampp\htdocs\bidding_site\inc\header.php:88) in G:\xampp\htdocs\bidding_site\inc\add_project.php on line 8
我已经检查了存在header()
之前没有空格。下面是我的add_project.php
<?php
if(isset($_SESSION['user'])) {
echo "hello world";
}
else {
header('location:../index.php');
}
?>
此外,问题是在'header.php'的#88行上 – Phil