<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chris Cook .me &#187; redirect</title>
	<atom:link href="http://chriscook.me/tag/redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://chriscook.me</link>
	<description>Homepage</description>
	<lastBuildDate>Sat, 23 Oct 2010 22:53:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Detecting iPhone visitors with PHP</title>
		<link>http://chriscook.me/web-development/detecting-iphone-visitors-ph/</link>
		<comments>http://chriscook.me/web-development/detecting-iphone-visitors-ph/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 00:53:59 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[http_user_agent]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone redirect]]></category>
		<category><![CDATA[iphone visitor]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[ipod touch]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[visitor detection]]></category>

		<guid isPermaLink="false">http://chriscook.me/?p=87</guid>
		<description><![CDATA[More and more internet traffic is generated by the iPhone and iPod touch. The PHP snippet below shows you how to automatically redirect your users to a page which is optimized for the iPhone Safari browser. {code type=php} if(strstr($_SERVER['HTTP_USER_AGENT'],&#8217;iPhone&#8217;) &#124;&#124; strstr($_SERVER['HTTP_USER_AGENT'],&#8217;iPod&#8217;)) { // Change your URL below header(&#8216;Location: http://www.domain.com/iphone&#8217;); exit(); } {/code}]]></description>
			<content:encoded><![CDATA[<p>More and more internet traffic is generated by the <strong>iPhone</strong> and <strong>iPod touch</strong>.</p>
<p>The PHP snippet below shows you how to automatically redirect your users to a page which is optimized for the iPhone Safari browser.</p>
<p>{code type=php}<br />
if(strstr($_SERVER['HTTP_USER_AGENT'],&#8217;iPhone&#8217;) || strstr($_SERVER['HTTP_USER_AGENT'],&#8217;iPod&#8217;))<br />
{<br />
// Change your URL below<br />
header(&#8216;Location: http://www.domain.com/iphone&#8217;);<br />
exit();<br />
}<br />
{/code}</p>
]]></content:encoded>
			<wfw:commentRss>http://chriscook.me/web-development/detecting-iphone-visitors-ph/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

