Hi,
Saturday, October 11, 2003, 10:02:31 PM, you wrote:
S> Hi,
S> I have created an online system, and have created a WAP version, and am
S> currently crreating a PDA version. What I wuold like to to do is give out
S> the same URL instead of domain.com for normal use, domain.com/wap/ or
S> domain.com/pda/. Is there a way of detecting what device is loading the site
S> and redirect them accordingly?
S> Thanks for your help
I have done this before, messy but it was the only way I could find at the time
$mode = "HTML";
if(eregi("UP.Browser",$_SERVER['HTTP_USER_AGENT'])
|| eregi("Nokia",$_SERVER['HTTP_USER_AGENT'])
|| eregi("Wapalizer",$_SERVER['HTTP_USER_AGENT']))$mode = "XML";
This was from a while ago but you get the idea
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php