PHP重定向的3种方式
2015-01-24信息快讯网
本文介绍了“PHP重定向的3种方式”,需要的朋友可以参考一下
//1
header("Location: index.php");
//2
echo '<scrīpt type="text/javascript">
window.location = "index.php";
</scrīpt>';
//3
echo "<META HTTP-EQUIV="Refresh" CONTENT="0; URL=index.php">";