Page 1 of 1

Detecing phone models using the User agent string or any way

Posted: Tue Jul 13, 2010 9:21 pm
by mobilephp
Hi,

I am new to the forum. Can any one tell me,
how to include the UA strings in the script and how to link to the script to make my site to detect which phone model it is.
Thank you in advance.

Re: Detecing phone models using the User agent string or any

Posted: Tue Jul 13, 2010 10:10 pm
by jraede
I'm sure there are scripts out there that grab the phone model form the user agent. But if you're up for writing one yourself you can just echo out $_SERVER['HTTP_USER_AGENT'] and create a regular expression to grab the phone model by checking out what it displays on different phones.

Re: Detecing phone models using the User agent string or any

Posted: Wed Jul 14, 2010 1:13 am
by cpetercarter
Here is a useful list of user-agent strings for a number of mobile phone models.