Re: Detect and Redirect Mobile Users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



http://php.net/manual/en/misc.configuration.php#ini.browscap
http://tempdownloads.browserscap.com/

$browser get_browser(nullTRUE);
if (isset(
$browser['ismobiledevice']) && ($browser['ismobiledevice'] == TRUE)) {
    
$isMobile TRUE;
}
else {
    
$isMobile FALSE;
}
unset(
$browser);

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux