当前位置: 移动技术网 > IT编程>开发语言>PHP > PHP重定向的3种方式

PHP重定向的3种方式

2019年04月14日  | 移动技术网IT编程  | 我要评论

复制代码 代码如下:

//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">";

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网