首页 > php开发 > PHP定时跳转

PHP定时跳转

用PHP实现"等待指定的时间,然后再跳转到指定页面".也就是用php实现和HTML中的一样的效果。

<?php
/** 
@title:PHP定时跳转 
@功能:等待指定的时间,然后再跳转到指定页面(代替html meta方式) 
*/ 
header("refresh:3;url=http://www.phprm.com"); 
print('正在加载,请稍等...<br>三秒后自动跳转~~~'); 
/* 
补充说明: 
若等待时间为0,则与header("location:")等效。 
*/

 

   


教程地址:http://www.phprm.com/develop/fs891.html

欢迎转载!但请带上文章地址^^

标签:php 跳转 定时

相关文章

发表留言