PHP实现指定时间跳转代码
作者: 郑晓 分类: PHP 发布于: 2010-11-20 02:50 浏览:6,442 没有评论
用PHP实现”等待指定的时间,然后再跳转到指定页面”.
也就是用php实现和HTML中的
<meta http-equiv="refresh" content="5; url=http://zhengoo.cn">
一样的效果。
<?
/*<em>
@title:PHP定时跳转
@author:zhengoo.cn
@功能:等待指定的时间,然后再跳转到指定页面(代替html meta方式)
</em>/
header("refresh:5;url=<a href="http://zhengoo.cn">http://zhengoo.cn</a>");</p>
<p>print('正在加载,请稍等...<br>五秒后自动跳转!');</p>
<p>/<em>
补充说明:
若等待时间为0,则与header("location:")等效。
</em>/</p>
<p>?>04
本文采用知识共享署名-非商业性使用 3.0 中国大陆许可协议进行许可,转载时请注明出处及相应链接。
本文永久链接: https://www.zh30.com/jump-php-code-to.html