网络编程 
首页 > 网络编程 > 浏览文章

PHP重定向的3种方式

(编辑:jimmy 日期: 2024/9/27 浏览: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">";

上一篇:PHP Directory 函数的详解
下一篇:file_get_contents获取不到网页内容的解决方法
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 SiteMap