Php determines whether the client is a mobile phone .? Phpphp determines whether the client is a mobile phone $ agent $ _ SERVER [HTTP_USER_AGENT]; if (strpos ($ agent, NetFront) | strpos ($ agent, iPhone) | strpos ($ agent, MIDP-2.0) | strpos ($ agent, OperaMi // Php determines whether the client is a mobile phone
$ Agent = $ _ SERVER ['http _ USER_AGENT '];
If (strpos ($ agent, "NetFront") | strpos ($ agent, "iPhone") | strpos ($ agent, "MIDP-2.0") | strpos ($ agent, "Opera Mini") | strpos ($ agent, "UCWEB") | strpos ($ agent, "Android") | strpos ($ agent, "Windows CE ") | strpos ($ agent, "SymbianOS "))
Header ("Location: xxxxxxxx ");
?>
From chaojie2009
Http://www.bkjia.com/PHPjc/478375.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478375.htmlTechArticle? Php // php determine whether the client is a mobile phone $ agent =$ _ SERVER [HTTP_USER_AGENT]; if (strpos ($ agent, NetFront) | strpos ($ agent, iPhone) | strpos ($ agent, MIDP-2.0) | strpos ($ agent, Opera Mi...