Php checks whether users use Mobile phones to access websites. Code. google. compphp-mobile-detect program is a file, download can be directly referenced, based on the MITLicense protocol open source PHP program usage: copy http://code.google.com/p/php-mobile-detect/
A program is a file, which can be directly referenced after being downloaded. it is an open-source PHP program based on the MIT License protocol.
Usage:
The code is as follows:
Include ("Mobile_Detect.php ");
$ Detect = new Mobile_Detect ();
If ($ detect-> isMobile ()){
// Any mobile platform
Echo 'ismobile ';
}
Else {
Echo 'ispc ';
}
?>
The http://www.bkjia.com/PHPjc/676861.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/676861.htmlTechArticlehttp://code.google.com/p/php-mobile-detect/ program is a file, download and direct reference can be, based on the MIT License protocol open source PHP program use method: copy...