Re: [PHP] Detecting devices i.e. PDA, Mobile
The easiest is to detect the browser because this is what really matters. Then the dimensions of the display come into the picture. There is a db of these browser capabilities and detecting and using them etc in a sourceforge project call wurlf all the best Shaun wrote: 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 -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha/megaupload/ Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Detecting devices i.e. PDA, Mobile
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