设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php指定网址跳转代码示例

发布时间:2022-01-15 14:17 所属栏目:121 来源:互联网
导读:php网址跳转代码实例: ? $s = $_SERVER[QUERY_STRING]; if ($s == http://www.baidu.com); { $s = http://www.qq.com; } if ($s == http://www.hao123.com); { $s = https://www.mycodes.net; } header(Location:.$s.); ?
  php网址跳转代码实例:
 
  <?
  $s = $_SERVER['QUERY_STRING'];
  if ($s == "http://www.baidu.com");
  {
  $s = "http://www.qq.com";
  }
  if ($s == "http://www.hao123.com");
  {
  $s = "https://www.mycodes.net";
  }
  header("Location:".$s."");
  ?>

(编辑:ASP站长网)

    网友评论
    推荐文章
      热点阅读