欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php指定网址跳转代码实例_PHP教程

程序员文章站 2022-04-18 22:41:09
...

$s = $_SERVER['QUERY_STRING'];
if ($s == "http://www.baidu.com");
{
$s = "http://www.qq.com";
}
if ($s == "http://www.hao123.com");
{
$s = "http://www.bkjia.com";
}
header("Location:".$s."");
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/371589.htmlTechArticle? $s = $_SERVER['QUERY_STRING']; if ($s == http://www.baidu.com); { $s = http://www.qq.com; } if ($s == http://www.hao123.com); { $s = http://www.bkjia.com; } header(Location:.$s.)...