php自动跳转页面的方法:1、使用【header()】函数,代码为【void header (string string [bool replace[]】;2、使用Meta标签,代码为【< meta http-equiv=refresh】。
php自动跳转页面的方法:
PHP页面跳转一、header()
函数
void header (string string [,bool replace [,int http_response_code]]);
php的头部不能够有任何数据的输出
PHP页面跳转二、Meta
标签
< meta http-equiv="refresh" content="1;url=http://www.baidu.com">
PHP页面跳转三、JavaScript(常用、推荐)
相关学习推荐:PHP编程从入门到精通
以上就是php如何自动跳转页面?的详细内容,更多请关注php中文网其它相关文章!
![php中文网最新课程二维码](/static/images/article_wechat2021.jpg?1111)
声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
- 上一篇:php如何实现单例模式
- 下一篇:php的类使用方法问题
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论