(1).如果要用此方法,在用之前不能有HTML输出。
$url="http://wcily123.iteye.com";
header("Location: $url");
(2).
echo "<script>window.location =\"test.php\";</script>";
或
将window.location换成self.location
(3).
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=index.php\">";
$url="http://wcily123.iteye.com";
header("Location: $url");
(2).
echo "<script>window.location =\"test.php\";</script>";
或
将window.location换成self.location
(3).
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=index.php\">";