一: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>";