php網頁指定網址跳轉代碼
<?
$s = $_SERVER['QUERY_STRING'];
if ($s == "http://www.baidu.com")
{
$s = http://m.aimjoke.net;
}
if ($s == "http://www.itmop.com")
{
$s = "http://m.aimjoke.net";
}
header("Location:".$s."");
?>
一般都是用 header , 稍微高級點的還要在header 再加上其它的東西
關鍵詞:php,跳轉代碼
閱讀本文后您有什么感想? 已有 人給出評價!
- 62
- 1
- 1
- 1
- 2
- 1