Re: Detecting devices i.e. PDA, Mobile

From: Date: Sun, 12 Oct 2003 03:20:28 +0000
Subject: Re: Detecting devices i.e. PDA, Mobile
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-165877@lists.php.net to get a copy of this message
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

« previous php.general (#165877) next »