Home > php教程 > php手册 > PHP定时跳转

PHP定时跳转

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 09:14:27
Original
856 people have browsed it

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

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

 

   


教程地址:

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

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template