立刻跳转 <?php header("location:url地址") ?> 例如 <?php header("location:helloworld.php")?> 页面会立即跳转,因为header执行了location重定向
延迟跳转
<?php header("Refresh:秒数;url=地址") ?> 例如 <?php header("Refresh:3;url=helloworld.php")?> 会在3秒后执行跳转 <?php sleep(3); header("location:url地址")?> 调用了sleep()方法,效果也是x秒后执行跳转