欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

php實(shí)現(xiàn)掃描二維碼根據(jù)瀏覽器類型訪問(wèn)不同下載地址

 更新時(shí)間:2014年10月15日 16:54:37   投稿:whsnow  
本程序?qū)崿F(xiàn)的功能就是掃描同一個(gè)二維碼根據(jù)瀏覽器類型訪問(wèn)不同下載地址,很實(shí)用的,建議大家學(xué)習(xí)下
<?php
$Agent = $_SERVER['HTTP_USER_AGENT'];
preg_match('/android|iphone/i',$Agent,$matches);
if (strtolower($matches[0]) == 'android') {
// echo "安卓";
header("Location: ".$GLOBALS["public_appconfig"]["app"]['android']."'");
} elseif (strtolower($matches[0]) == 'iphone') {
header("'Location: ".$GLOBALS["public_appconfig"]["app"]['ios']."'");
}else{
//不確定是什么系統(tǒng)或者是pc
header("Location: ".$GLOBALS["public_appconfig"]["app"]['android']."'");
}
?>

相關(guān)文章

最新評(píng)論