-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