当前位置:Gxlcms > PHP教程 > php指定网址跳转代码实例_PHP教程

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

时间:2021-07-01 10:21:17 帮助过:7人阅读

$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.)...

人气教程排行