php实现扫描二维码根据浏览器类型访问不同下载地址
<?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{ //不确定是什么系统或者是pc header("Location: ".$GLOBALS["public_appconfig"]["app"]['android']."'"); } ?>
相关推荐
Allinputs 2020-08-30
Steven 2020-08-07
风萧萧梦潇 2020-07-30
small 2020-07-29
无缘公子 2020-06-28
wangdaren 2020-06-03
Develop 2020-06-01
zhaoyangjian 2020-05-26
gufudhn 2020-05-02
hgzhang 2020-04-23
yiyilanmei 2020-04-22
caishancai 2020-04-22
xieyixiao 2020-04-22
zcabcd 2020-04-18
cdkey 2020-04-17
D先生 2020-04-14
jiamingku 2020-04-10
85580695 2020-04-07
woniulx0 2020-03-26