Re: Detecting devices i.e. PDA, Mobile
| From: | PHP Webmaster | Date: | Sat, 11 Oct 2003 23:41:42 +0000 |
| Subject: | Re: Detecting devices i.e. PDA, Mobile | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165866@lists.php.net to get a copy of this message | ||
"Shaun" <shaun@mania.plus.com> wrote in message
news:20031011120232.14638.qmail@pb1.pair.com...
> Hi,
>
> I have created an online system, and have created a WAP version, and am
> currently crreating a PDA version. What I wuold like to to do is give out
> the same URL instead of domain.com for normal use, domain.com/wap/ or
> domain.com/pda/. Is there a way of detecting what device is loading the
site
> and redirect them accordingly?
>
> Thanks for your help
As far as I am aware, PHP or infact even JavaScript isn't capable of doing
this. Your best bet is to default redirect to a default version of the site
(not the WAP or PDA version) and provide a link to the WAP and PDA versions
of the site.