首页 >后端开发 >php教程 >php指定网址跳转代码实例_PHP教程

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

WBOY
WBOY原创
2016-07-21 14:52:151040浏览


$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