PHP 中跳转网页的三种方法

一:Header

Ex:  3秒后跳转到主页:header("Refresh: 3; url=index.php");

缺点:header 前不能有输出

二:利用 <meta> 标签:

Ex: 3秒后跳转到主页:<meta http-equiv="refresh"  content="3"; url="index.php">;

三:利用 js:

 Ex: echo "<script>window.location.href='http://blog.163.com/skill_sun/blog/index.php';</script>";

原文地址:https://www.cnblogs.com/Jerry-blog/p/5010272.html