close

 

<?php

// 如果沒有發送頭,請發送一個
if (!headers_sent()) {
header('Location: http://www.example.com/');
exit;
}


if (!headers_sent($filename, $linenum)) {
header('Location: http://www.example.com/');
exit;

// 你很可能會在這裡觸發一個錯誤.
} else {

echo "Headers already sent in $filename on line $linenum\n" .
"Cannot redirect, for now please click this <a " .
"href=\"http://www.example.com\">link</a> instead\n";
exit;
}

?>

arrow
arrow
    全站熱搜

    stockwfj3 發表在 痞客邦 留言(0) 人氣()