<?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"
	>
<channel>
	<title>Comments on: PHP Auto-Bowser Detection</title>
	<atom:link href="http://www.iphonemicrosites.com/tutorials/php-auto-bowser-detection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iphonemicrosites.com/tutorials/php-auto-bowser-detection/</link>
	<description>iPhone-Optimized Website Solutions</description>
	<pubDate>Tue, 06 Jan 2009 07:52:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: AppStoreDeals</title>
		<link>http://www.iphonemicrosites.com/tutorials/php-auto-bowser-detection/#comment-40</link>
		<dc:creator>AppStoreDeals</dc:creator>
		<pubDate>Thu, 30 Oct 2008 20:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.iphonemicrosites.com/?p=19#comment-40</guid>
		<description>Thanks so much for this!  On App Store Deals I modified the code a bit to detect iPod and iPhone such as:




Seems to work well!  Thanks for the base. :)
Justin @ http://appstoredeals.com</description>
		<content:encoded><![CDATA[<p>Thanks so much for this!  On App Store Deals I modified the code a bit to detect iPod and iPhone such as:</p>
<p>Seems to work well!  Thanks for the base. <img src='http://www.iphonemicrosites.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Justin @ <a href="http://appstoredeals.com" rel="nofollow">http://appstoredeals.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh N.</title>
		<link>http://www.iphonemicrosites.com/tutorials/php-auto-bowser-detection/#comment-39</link>
		<dc:creator>Josh N.</dc:creator>
		<pubDate>Fri, 15 Aug 2008 20:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.iphonemicrosites.com/?p=19#comment-39</guid>
		<description>"Auto-bowser Dectection" ??!!

Where was this when I played Super Mario Bros?</description>
		<content:encoded><![CDATA[<p>&#8220;Auto-bowser Dectection&#8221; ??!!</p>
<p>Where was this when I played Super Mario Bros?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.iphonemicrosites.com/tutorials/php-auto-bowser-detection/#comment-38</link>
		<dc:creator>david</dc:creator>
		<pubDate>Thu, 24 Jul 2008 04:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.iphonemicrosites.com/?p=19#comment-38</guid>
		<description>wouldnt it be more practical to use a service like handsetdetection.com so that you can adjust for every handset rather than just the iphone?

(i get that this is an iphone specific site but......)</description>
		<content:encoded><![CDATA[<p>wouldnt it be more practical to use a service like handsetdetection.com so that you can adjust for every handset rather than just the iphone?</p>
<p>(i get that this is an iphone specific site but&#8230;&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.iphonemicrosites.com/tutorials/php-auto-bowser-detection/#comment-37</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 20 Jul 2008 22:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.iphonemicrosites.com/?p=19#comment-37</guid>
		<description>Hi Bufo,

The script was tested and works with iPod Touch, but it is counterintuitive as the user agent strings are in fact slightly different.

If you'd like, you can always add specific support for iPod touch by doing another check for “iPod”.

$touchDetect = strpos($_SERVER['HTTP_USER_AGENT'],”iPod”);

Then extend your if statement to check this as well.

Hope that helps!

-Admin</description>
		<content:encoded><![CDATA[<p>Hi Bufo,</p>
<p>The script was tested and works with iPod Touch, but it is counterintuitive as the user agent strings are in fact slightly different.</p>
<p>If you&#8217;d like, you can always add specific support for iPod touch by doing another check for “iPod”.</p>
<p>$touchDetect = strpos($_SERVER['HTTP_USER_AGENT'],”iPod”);</p>
<p>Then extend your if statement to check this as well.</p>
<p>Hope that helps!</p>
<p>-Admin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bufo</title>
		<link>http://www.iphonemicrosites.com/tutorials/php-auto-bowser-detection/#comment-36</link>
		<dc:creator>Bufo</dc:creator>
		<pubDate>Sun, 20 Jul 2008 18:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.iphonemicrosites.com/?p=19#comment-36</guid>
		<description>Are you sure that the code above detects the iPod Touch as well as the iPhone? Somehow, I don't believe that the User Agent for the iPod Touch is "iPhone".</description>
		<content:encoded><![CDATA[<p>Are you sure that the code above detects the iPod Touch as well as the iPhone? Somehow, I don&#8217;t believe that the User Agent for the iPod Touch is &#8220;iPhone&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.iphonemicrosites.com/tutorials/php-auto-bowser-detection/#comment-35</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 02 Jul 2008 22:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.iphonemicrosites.com/?p=19#comment-35</guid>
		<description>Hi Mickie,

You can use PHP's &lt;a href="http://us3.php.net/header" target="_blank" rel="nofollow"&gt;header()&lt;/a&gt; function in place of the echo, like so:

&#60;?php
$browser = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
if ($browser == true)  { header("Location: http://www.example.com/"); }
?&#62;

Note that no output can be sent before the function is called, as you will get an error.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>Hi Mickie,</p>
<p>You can use PHP&#8217;s <a href="http://us3.php.net/header" target="_blank" rel="nofollow">header()</a> function in place of the echo, like so:</p>
<p>&lt;?php<br />
$browser = strpos($_SERVER['HTTP_USER_AGENT'],&#8221;iPhone&#8221;);<br />
if ($browser == true)  { header(&#8221;Location: <a href="http://www.example.com/" rel="nofollow">http://www.example.com/</a>&#8220;); }<br />
?&gt;</p>
<p>Note that no output can be sent before the function is called, as you will get an error.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mickie</title>
		<link>http://www.iphonemicrosites.com/tutorials/php-auto-bowser-detection/#comment-34</link>
		<dc:creator>Mickie</dc:creator>
		<pubDate>Wed, 02 Jul 2008 11:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.iphonemicrosites.com/?p=19#comment-34</guid>
		<description>I have a little question: when want to redirect, is this code correct?
if ($browser == true)  { echo ‘redirectpage.php’; }</description>
		<content:encoded><![CDATA[<p>I have a little question: when want to redirect, is this code correct?<br />
if ($browser == true)  { echo ‘redirectpage.php’; }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
