Home >Backend Development >PHP Tutorial >php中的网页重定向原创_PHP

php中的网页重定向原创_PHP

WBOY
WBOYOriginal
2016-06-01 12:42:50703browse

             php中的网页重定向
                           ——爆米花
  在php中进行网页重定向一共有三种方法:
  1。利用header()重定向
  
    header("Location: $url");
    exit;
  ?>
2。用嵌入HTML的标识重定向
";
  echo "location.href='$url'";
  echo "-->";
  ?>

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