首頁 >後端開發 >php教程 >php指定网址跳转代码实例_PHP教程

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

WBOY
WBOY原創
2016-07-21 14:52:151052瀏覽


$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.)...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn