<?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: Detecting iPhone visitors with PHP</title>
	<atom:link href="http://chriscook.me/web-development/detecting-iphone-visitors-ph/feed/" rel="self" type="application/rss+xml" />
	<link>http://chriscook.me/web-development/detecting-iphone-visitors-ph/</link>
	<description>Homepage</description>
	<lastBuildDate>Wed, 07 Apr 2010 09:59:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Neo</title>
		<link>http://chriscook.me/web-development/detecting-iphone-visitors-ph/comment-page-1/#comment-138</link>
		<dc:creator>Neo</dc:creator>
		<pubDate>Tue, 24 Nov 2009 09:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://chriscook.me/?p=87#comment-138</guid>
		<description>good idea
i think it would be better if we use strtolower to match the userAgent

thanks 4 ur great articles, U ROCK!

$userAgent = strtolower($_SERVER[&#039;HTTP_USER_AGENT&#039;]);

if(preg_match(&#039;/iphone/&#039;, $userAgent) &#124;&#124; preg_match(&#039;/ipod/&#039;, $userAgent)) {
//do whatever u want
}</description>
		<content:encoded><![CDATA[<p>good idea<br />
i think it would be better if we use strtolower to match the userAgent</p>
<p>thanks 4 ur great articles, U ROCK!</p>
<p>$userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);</p>
<p>if(preg_match(&#8216;/iphone/&#8217;, $userAgent) || preg_match(&#8216;/ipod/&#8217;, $userAgent)) {<br />
//do whatever u want<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
