Re: Detect and Redirect Mobile Users
| From: | Dead Letter.Office | Date: | Fri, 14 Jun 2013 04:21:50 +0000 |
| Subject: | Re: Detect and Redirect Mobile Users | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-321400@lists.php.net to get a copy of this message | ||
http://php.net/manual/en/misc.configuration.php#ini.browscap
http://tempdownloads.browserscap.com/
$browser = get_browser(null, TRUE);
if (isset($browser['ismobiledevice']) && ($browser['ismobiledevice'] ==
TRUE)) {
$isMobile = TRUE;
}
else {
$isMobile = FALSE;
}
unset($browser);