Re: [PHP] Detect and Redirect Mobile Users
[email protected] ("Dead Letter.Office")
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
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);