PHP重定向三种方法::
(1).如果要用此方法,在用之前不能有HTML输出。(***)
$url="http://www.endbus.cn"; header("Location: $url");
(2).
echo "<script>window.location ="www.endbus.cn";</script>";
或
将window.location换成self.location
(3).
echo "<META HTTP-EQUIV="Refresh" CONTENT="0; URL=index.php">";
评论