我有這樣的代碼:PHP頭刷新警告
<?php
session_start();
echo "".$_SESSION['eventnum']."";
$urlRefresh = "testremot.php";
header("Refresh: 5; URL=\"" . $urlRefresh . "\"");
?>
但頭不工作,當我嘗試運行此代碼此警告顯示:
警告:不能更改頭信息 - 頭已經發出(輸出開始在C:\ XAMPP \ htdocs中\ REMOT \ testremot.php:3)在C:\ XAMPP \ htdocs中\ REMOT \ testremot.php上線5 **
你能請幫幫我?
重複前面沒有空格或其它字符 – deceze 2010-05-27 09:21:47
有什麼之前< ?php標籤? – apis17 2010-05-27 09:38:48