<?phpsession_start();require(conn.php');if($_SESSION['admin']=="OK"){?>數(shù)據(jù)<?phpinclude('foot.php');}else{header("location:login.php");}mysql_close();?>Warning: Cannot modify header information - headers already sent by初步認(rèn)為是header("location:login.php");出錯(cuò)。把它改成 echo"<script language='javaScript'>window.location.href='index.php';</script>";就可以了。
我想用header這個(gè)語(yǔ)句。怎么處理?
動(dòng)漫人物
2022-07-26 15:15:03