博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PHP定时跳转
阅读量:4169 次
发布时间:2019-05-26

本文共 338 字,大约阅读时间需要 1 分钟。

用PHP实现"等待指定的时间,然后再跳转到指定页面".
也就是用php实现和HTML中的
<meta http-equiv="refresh" content="3; url=http://axgle.za.net">一样的效果。
  1. <?
  2. /**
  3. @title:PHP定时跳转
  4. @author:axgle
  5. @date:2005-11-04
  6. @功能:等待指定的时间,然后再跳转到指定页面(代替html meta方式)
  7. */
  8. header("refresh:3;url=http://axgle.za.net");
  9. print('正在加载,请稍等...<br>三秒后自动跳转~~~');
  10. /*
  11. 补充说明:
  12. 若等待时间为0,则与header("location:")等效。
  13. */
  14. ?>

转载地址:http://dbgxi.baihongyu.com/

你可能感兴趣的文章
python set集合运算(交集,并集,差集,对称差集)
查看>>
python字符串replace()方法
查看>>
python替换文件中的指定内容
查看>>
linux系统下python tab键补全(2步搞定)
查看>>
linux locate 命令使用示例
查看>>
eclipse PyDev 字符集编码设置的3种方法
查看>>
eclipse字体大小设置
查看>>
python __init__.py __name__ __doc__ __file__ argv[0] 浅析
查看>>
Python 命名空间和LEGB规则
查看>>
python 函数的嵌套定义 and 函数的返回值是函数
查看>>
Python 内置函数 locals() 和globals()
查看>>
Python repr() 函数和str() 函数
查看>>
cmd命令里的路径包含空格 的解决方法
查看>>
linux命令执行后的 返回值与错误代码
查看>>
python os.system(command)函数的返回值 与 linux命令返回值的关系
查看>>
python os.system()和os.popen()
查看>>
python sys.argv[]用法
查看>>
eclipse python代码块 整体缩进 以及 整体取消缩进
查看>>
python中*args **kwargs的使用
查看>>
理解Python中的with…as…语法
查看>>