<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mobile Browser Detection</title>
	<atom:link href="http://alexking.org/blog/2003/05/04/mobile-browser-detection/feed" rel="self" type="application/rss+xml" />
	<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection</link>
	<description>Alex King, Denver Web Developer</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:02:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ash</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-67289</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Mon, 27 Apr 2009 15:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-67289</guid>
		<description>Sam:
One problem with your script, not all phones support javascript</description>
		<content:encoded><![CDATA[<p>Sam:<br />
One problem with your script, not all phones support javascript</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-66718</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 11 Mar 2009 22:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-66718</guid>
		<description>I created a script not long ago that detects over 200 different types of mobile phones using JavaScript and Regular Expressions that take up just two lines of code for the detection.

Here is the site I used for the mobile browser useragents to create it:
http://www.zytrax.com/tech/web/mobile_ids.html

And here is a link to the script:
http://sourceforge.net/project/showfiles.php?group_id=213893&amp;package_id=294248&amp;release_id=632929

I figured other people would find it useful so I shared it.</description>
		<content:encoded><![CDATA[<p>I created a script not long ago that detects over 200 different types of mobile phones using JavaScript and Regular Expressions that take up just two lines of code for the detection.</p>
<p>Here is the site I used for the mobile browser useragents to create it:<br />
<a href="http://www.zytrax.com/tech/web/mobile_ids.html" rel="nofollow">http://www.zytrax.co[...]ile_ids.html</a></p>
<p>And here is a link to the script:<br />
<a href="http://sourceforge.net/project/showfiles.php?group_id=213893&#038;package_id=294248&#038;release_id=632929" rel="nofollow">http://sourceforge.n[...]se_id=632929</a></p>
<p>I figured other people would find it useful so I shared it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hadi</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-65321</link>
		<dc:creator>Hadi</dc:creator>
		<pubDate>Sun, 09 Nov 2008 13:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-65321</guid>
		<description>Hello,
What is the right page format for Mobile browsers ?</description>
		<content:encoded><![CDATA[<p>Hello,<br />
What is the right page format for Mobile browsers ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-59195</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Sun, 14 Oct 2007 19:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-59195</guid>
		<description>Nokia browser 3.0.1 is a browser from Nokia itself, i had it in my old samsung phone! :)

and it does get more tedious than this as newer mobiles send out a accept header of text/html and expect a xHTML-MP response in return!
there have to be 2 loops, one for is it a mobile or not as above, and if it is then what to send!</description>
		<content:encoded><![CDATA[<p>Nokia browser 3.0.1 is a browser from Nokia itself, i had it in my old samsung phone! <img src='http://alexking.org/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>and it does get more tedious than this as newer mobiles send out a accept header of text/html and expect a xHTML-MP response in return!<br />
there have to be 2 loops, one for is it a mobile or not as above, and if it is then what to send!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-31835</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Thu, 19 Oct 2006 19:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-31835</guid>
		<description>What abotu 3gp? since you got everything listed for redirection. so ii dont see any mobile 2.0 or 3gp so hope hear from you all soon</description>
		<content:encoded><![CDATA[<p>What abotu 3gp? since you got everything listed for redirection. so ii dont see any mobile 2.0 or 3gp so hope hear from you all soon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kobe</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-10455</link>
		<dc:creator>kobe</dc:creator>
		<pubDate>Sun, 08 Jan 2006 23:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-10455</guid>
		<description>Everything&#039;s not so simple as it seems to be. I&#039;ve just conducted an experiment and I found out the following - my cellphone embedded browser accepts both xhtml and wml - so that when it detects a wml page it send out an http accept header where wml support declared. if it detects an html page it send out a http accept header where it declares html support. so we have to struggle with &#039;smartness&#039; of mobile phone browsers, too</description>
		<content:encoded><![CDATA[<p>Everything&#8217;s not so simple as it seems to be. I&#8217;ve just conducted an experiment and I found out the following &#8211; my cellphone embedded browser accepts both xhtml and wml &#8211; so that when it detects a wml page it send out an http accept header where wml support declared. if it detects an html page it send out a http accept header where it declares html support. so we have to struggle with &#8216;smartness&#8217; of mobile phone browsers, too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harsha</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-2251</link>
		<dc:creator>Harsha</dc:creator>
		<pubDate>Wed, 21 Jul 2004 11:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-2251</guid>
		<description>how to redirect a html/wap browser to its respective format. i am not familiar with php. i managed to get the code below. is that enough or anything else should be added to it 




&lt;?PHP

// A file to redirect users based on their browsers.

$htmlredirect = &quot;http://www.yahoo.com&quot;;

$wmlredirect = &quot;http://wap41.com/hmv/&quot;;  if(strpos(strtoupper($HTTP_ACCEPT),&quot;VND.WAP.WML&quot;) &gt; 0) 

{

$br = &quot;WML&quot;;

}

else 

{

$browser=substr(trim($HTTP_USER_AGENT),0,4);

if($browser==&quot;Noki&quot; &#124;&#124;   // Nokia phones and emulators

$browser==&quot;Eric&quot; &#124;&#124;   // Ericsson WAP phones and emulators

$browser==&quot;WapI&quot; &#124;&#124;   // Ericsson WapIDE 2.0

$browser==&quot;MC21&quot; &#124;&#124;   // Ericsson MC218

$browser==&quot;AUR &quot; &#124;&#124;   // Ericsson R320

$browser==&quot;R380&quot; &#124;&#124;   // Ericsson R380

$browser==&quot;UP.B&quot; &#124;&#124;   // UP.Browser

$browser==&quot;WinW&quot; &#124;&#124;   // WinWAP browser

$browser==&quot;UPG1&quot; &#124;&#124;   // UP.SDK 4.0

$browser==&quot;upsi&quot; &#124;&#124;   // another kind of UP.Browser ??

$browser==&quot;QWAP&quot; &#124;&#124;   // unknown QWAPPER browser

$browser==&quot;Jigs&quot; &#124;&#124;   // unknown JigSaw browser

$browser==&quot;Java&quot; &#124;&#124;   // unknown Java based browser

$browser==&quot;Alca&quot; &#124;&#124;   // unknown Alcatel-BE3 browser (UP based?)

$browser==&quot;MITS&quot; &#124;&#124;   // unknown Mitsubishi browser

$browser==&quot;MOT-&quot; &#124;&#124;   // unknown browser (UP based?)

$browser==&quot;My S&quot; &#124;&#124;   // unknown Ericsson devkit browser ?

$browser==&quot;WAPJ&quot; &#124;&#124;   // Virtual WAPJAG www.wapjag.de

$browser==&quot;fetc&quot; &#124;&#124;   // fetchpage.cgi Perl script from www.wapcab.de

$browser==&quot;ALAV&quot; &#124;&#124;   // yet another unknown UP based browser ?

$browser==&quot;Wapa&quot;)     // another unknown browser (&quot;Wapalyzer&quot;?)

{

$br = &quot;WML&quot;;

}

else 

{

$br = &quot;HTML&quot;;

}

}

if($br == &quot;WML&quot;) 

{

header(&quot;302 Moved Temporarily&quot;);

header(&quot;Location: &quot;.$wmlredirect);

exit;

}

else 

{header(&quot;302 Moved Temporarily&quot;);

header(&quot;Location: &quot;.$htmlredirect);

exit;

}

?&gt;</description>
		<content:encoded><![CDATA[<p>how to redirect a html/wap browser to its respective format. i am not familiar with php. i managed to get the code below. is that enough or anything else should be added to it </p>
<p>< ?PHP</p>
<p>// A file to redirect users based on their browsers.</p>
<p>$htmlredirect = "http://www.yahoo.com";</p>
<p>$wmlredirect = "http://wap41.com/hmv/";  if(strpos(strtoupper($HTTP_ACCEPT),"VND.WAP.WML") > 0) </p>
<p>{</p>
<p>$br = &#8220;WML&#8221;;</p>
<p>}</p>
<p>else </p>
<p>{</p>
<p>$browser=substr(trim($HTTP_USER_AGENT),0,4);</p>
<p>if($browser==&#8221;Noki&#8221; ||   // Nokia phones and emulators</p>
<p>$browser==&#8221;Eric&#8221; ||   // Ericsson WAP phones and emulators</p>
<p>$browser==&#8221;WapI&#8221; ||   // Ericsson WapIDE 2.0</p>
<p>$browser==&#8221;MC21&#8243; ||   // Ericsson MC218</p>
<p>$browser==&#8221;AUR &#8221; ||   // Ericsson R320</p>
<p>$browser==&#8221;R380&#8243; ||   // Ericsson R380</p>
<p>$browser==&#8221;UP.B&#8221; ||   // UP.Browser</p>
<p>$browser==&#8221;WinW&#8221; ||   // WinWAP browser</p>
<p>$browser==&#8221;UPG1&#8243; ||   // UP.SDK 4.0</p>
<p>$browser==&#8221;upsi&#8221; ||   // another kind of UP.Browser ??</p>
<p>$browser==&#8221;QWAP&#8221; ||   // unknown QWAPPER browser</p>
<p>$browser==&#8221;Jigs&#8221; ||   // unknown JigSaw browser</p>
<p>$browser==&#8221;Java&#8221; ||   // unknown Java based browser</p>
<p>$browser==&#8221;Alca&#8221; ||   // unknown Alcatel-BE3 browser (UP based?)</p>
<p>$browser==&#8221;MITS&#8221; ||   // unknown Mitsubishi browser</p>
<p>$browser==&#8221;MOT-&#8221; ||   // unknown browser (UP based?)</p>
<p>$browser==&#8221;My S&#8221; ||   // unknown Ericsson devkit browser ?</p>
<p>$browser==&#8221;WAPJ&#8221; ||   // Virtual WAPJAG <a href="http://www.wapjag.de" rel="nofollow">http://www.wapjag.de</a></p>
<p>$browser==&#8221;fetc&#8221; ||   // fetchpage.cgi Perl script from <a href="http://www.wapcab.de" rel="nofollow">http://www.wapcab.de</a></p>
<p>$browser==&#8221;ALAV&#8221; ||   // yet another unknown UP based browser ?</p>
<p>$browser==&#8221;Wapa&#8221;)     // another unknown browser (&#8220;Wapalyzer&#8221;?)</p>
<p>{</p>
<p>$br = &#8220;WML&#8221;;</p>
<p>}</p>
<p>else </p>
<p>{</p>
<p>$br = &#8220;HTML&#8221;;</p>
<p>}</p>
<p>}</p>
<p>if($br == &#8220;WML&#8221;) </p>
<p>{</p>
<p>header(&#8220;302 Moved Temporarily&#8221;);</p>
<p>header(&#8220;Location: &#8220;.$wmlredirect);</p>
<p>exit;</p>
<p>}</p>
<p>else </p>
<p>{header(&#8220;302 Moved Temporarily&#8221;);</p>
<p>header(&#8220;Location: &#8220;.$htmlredirect);</p>
<p>exit;</p>
<p>}</p>
<p>?></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-294</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 24 Jul 2003 07:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-294</guid>
		<description>Those things I listed above *are* the HTTP_USER_AGENT strings from the browsers. I am currently redirecting based on a string comparison with the HTTP_USER_AGENT the browser is declaring itself as.</description>
		<content:encoded><![CDATA[<p>Those things I listed above *are* the HTTP_USER_AGENT strings from the browsers. I am currently redirecting based on a string comparison with the HTTP_USER_AGENT the browser is declaring itself as.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-293</link>
		<dc:creator>Louis</dc:creator>
		<pubDate>Thu, 24 Jul 2003 02:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-293</guid>
		<description>Recently I have come across on the mobile browser detection, via PHP.   There is another method to check the user HTTP agent, where it will show what browser that user currently using.  For PDA, it will show &#039;Window CE&#039;.  For most web browser, i belive it will show &#039;Mozilla&#039;.  For wap, it will come from different mobile devices. So you have to check the devices HTTP header differently.  

This is the better way that will router the content based on client&#039;s browsers.  As PDA and web browser using the same web browser.</description>
		<content:encoded><![CDATA[<p>Recently I have come across on the mobile browser detection, via PHP.   There is another method to check the user HTTP agent, where it will show what browser that user currently using.  For PDA, it will show &#8216;Window CE&#8217;.  For most web browser, i belive it will show &#8216;Mozilla&#8217;.  For wap, it will come from different mobile devices. So you have to check the devices HTTP header differently.  </p>
<p>This is the better way that will router the content based on client&#8217;s browsers.  As PDA and web browser using the same web browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Brome</title>
		<link>http://alexking.org/blog/2003/05/04/mobile-browser-detection#comment-162</link>
		<dc:creator>Jason Brome</dc:creator>
		<pubDate>Thu, 08 May 2003 21:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.alexking.org/blog/2003/05/04/mobile-browser-detection/#comment-162</guid>
		<description>I believe that the Nokia Browser supports both WML and XHTML.  Check out the following Nokia forum article for some hints (although it discusses yet another user-agent string):

http://discussion.forum.nokia.com/forum/showthread.php?threadid=13604

In your redirection logic, you can always examine the Accept HTTP header, and route based upon its content:

e.g.

text/vnd.wap.wml
application/vnd.wap.wmlc

.. for WAP, and other headers, as appropriate, for HTML / XHTML.</description>
		<content:encoded><![CDATA[<p>I believe that the Nokia Browser supports both WML and XHTML.  Check out the following Nokia forum article for some hints (although it discusses yet another user-agent string):</p>
<p><a href="http://discussion.forum.nokia.com/forum/showthread.php?threadid=13604" rel="nofollow">http://discussion.fo[...]readid=13604</a></p>
<p>In your redirection logic, you can always examine the Accept HTTP header, and route based upon its content:</p>
<p>e.g.</p>
<p>text/vnd.wap.wml<br />
application/vnd.wap.wmlc</p>
<p>.. for WAP, and other headers, as appropriate, for HTML / XHTML.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

