Home >Backend Development >PHP Tutorial >php网页重定向的实现方法

php网页重定向的实现方法

WBOY
WBOYOriginal
2016-06-23 13:24:52845browse

php网页重定向的实现方法

1、header("Location: http://www.baidu.com"); //Location:之后有“空格”2、echo "<script>window.location = " 3、echo "<METAHTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=http://www.baidu.com\">";


Statement:
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