<?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: PHP Browser Detection</title>
	<atom:link href="http://martythornley.com/downloads/php-browser-detection/feed/" rel="self" type="application/rss+xml" />
	<link>http://martythornley.com</link>
	<description>Los Angeles Fimmaker and Web Developer</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:37:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Tsem</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-745</link>
		<dc:creator>Tsem</dc:creator>
		<pubDate>Thu, 15 Jul 2010 03:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-745</guid>
		<description>Thanks for the response, unfortunately I think I am running into the issue where wordpress does not execute php statements inserted into the body.

would anyone have a real example of how this is done in context of what should be entered in the page edit mode?</description>
		<content:encoded><![CDATA[<p>Thanks for the response, unfortunately I think I am running into the issue where wordpress does not execute php statements inserted into the body.</p>
<p>would anyone have a real example of how this is done in context of what should be entered in the page edit mode?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marty</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-739</link>
		<dc:creator>marty</dc:creator>
		<pubDate>Wed, 14 Jul 2010 17:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-739</guid>
		<description>Unfortunately php code does not show up very well in the comments.
But you would just use the if statements provided to test for an iphone 

if ( is_iphone() ) :
 -Show a Quicktime movie-
else :
 -Show a flash movie-
endif;

You&#039;ll have to use the included examples or look up php if statements for help with the correct formatting.</description>
		<content:encoded><![CDATA[<p>Unfortunately php code does not show up very well in the comments.<br />
But you would just use the if statements provided to test for an iphone </p>
<p>if ( is_iphone() ) :<br />
 -Show a Quicktime movie-<br />
else :<br />
 -Show a flash movie-<br />
endif;</p>
<p>You&#8217;ll have to use the included examples or look up php if statements for help with the correct formatting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tsem</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-737</link>
		<dc:creator>Tsem</dc:creator>
		<pubDate>Wed, 14 Jul 2010 16:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-737</guid>
		<description>Hi there, this looks like exactly what we need!

We&#039;d like to use the ability mentioned &quot;Display different content or custom messages anywhere on the page, or to swap out flash for an image for iPhones.&quot;  

Could you give me a summary of how to do this in a wordpress page to display alternate content for iphone users?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi there, this looks like exactly what we need!</p>
<p>We&#8217;d like to use the ability mentioned &#8220;Display different content or custom messages anywhere on the page, or to swap out flash for an image for iPhones.&#8221;  </p>
<p>Could you give me a summary of how to do this in a wordpress page to display alternate content for iphone users?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-529</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Thu, 10 Jun 2010 20:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-529</guid>
		<description>Hi Toby,

Not letting me post code here in comments.

See addition to post above.

Marty</description>
		<content:encoded><![CDATA[<p>Hi Toby,</p>
<p>Not letting me post code here in comments.</p>
<p>See addition to post above.</p>
<p>Marty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-528</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Thu, 10 Jun 2010 20:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-528</guid>
		<description>Sorry for being a dunce here but can someone post an example of a conditional statement that loads an alternate CSS file in WordPress?  Would that go in header.php?  I keep crashing my blog when trying to use this.

http://www.festival.si.edu/blog/

Thanks!
Toby</description>
		<content:encoded><![CDATA[<p>Sorry for being a dunce here but can someone post an example of a conditional statement that loads an alternate CSS file in WordPress?  Would that go in header.php?  I keep crashing my blog when trying to use this.</p>
<p><a href="http://www.festival.si.edu/blog/" rel="nofollow">http://www.festival.si.edu/blog/</a></p>
<p>Thanks!<br />
Toby</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-517</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Sat, 06 Mar 2010 08:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-517</guid>
		<description>Thanks. Glad it is helping. Tests for sub versions was definitely next. But you saved me some time it looks like. I will be adding a test for JavaScript as well.</description>
		<content:encoded><![CDATA[<p>Thanks. Glad it is helping. Tests for sub versions was definitely next. But you saved me some time it looks like. I will be adding a test for JavaScript as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bedo</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-516</link>
		<dc:creator>Bedo</dc:creator>
		<pubDate>Sat, 06 Mar 2010 07:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-516</guid>
		<description>Hi Marty, really cool plugin, exactly what I was searching for, however I needed to detect the firefox subversions as well (because of the new css3 features)

Here the code :

´function is_firefox_3 (){
	$browserInfo = php_browser_info();
	if(isset($browserInfo[&#039;browser&#039;]) &amp;&amp; $browserInfo[&#039;browser&#039;]==&#039;Firefox&#039; &amp;&amp; $browserInfo[&#039;version&#039;] == 3)
		return true;
	return false;
}
function is_firefox_3_5 (){
	$browserInfo = php_browser_info();
	if(isset($browserInfo[&#039;browser&#039;]) &amp;&amp; $browserInfo[&#039;browser&#039;]==&#039;Firefox&#039; &amp;&amp; $browserInfo[&#039;version&#039;] == 3.5)
		return true;
	return false;
}
function is_firefox_3_6 (){
	$browserInfo = php_browser_info();
	if(isset($browserInfo[&#039;browser&#039;]) &amp;&amp; $browserInfo[&#039;browser&#039;]==&#039;Firefox&#039; &amp;&amp; $browserInfo[&#039;version&#039;] == 3.6)
		return true;
	return false;
}´

You could may consider this in the next release, maybe it will help somebody else as well.

Cheers</description>
		<content:encoded><![CDATA[<p>Hi Marty, really cool plugin, exactly what I was searching for, however I needed to detect the firefox subversions as well (because of the new css3 features)</p>
<p>Here the code :</p>
<p>´function is_firefox_3 (){<br />
	$browserInfo = php_browser_info();<br />
	if(isset($browserInfo['browser']) &amp;&amp; $browserInfo['browser']==&#8217;Firefox&#8217; &amp;&amp; $browserInfo['version'] == 3)<br />
		return true;<br />
	return false;<br />
}<br />
function is_firefox_3_5 (){<br />
	$browserInfo = php_browser_info();<br />
	if(isset($browserInfo['browser']) &amp;&amp; $browserInfo['browser']==&#8217;Firefox&#8217; &amp;&amp; $browserInfo['version'] == 3.5)<br />
		return true;<br />
	return false;<br />
}<br />
function is_firefox_3_6 (){<br />
	$browserInfo = php_browser_info();<br />
	if(isset($browserInfo['browser']) &amp;&amp; $browserInfo['browser']==&#8217;Firefox&#8217; &amp;&amp; $browserInfo['version'] == 3.6)<br />
		return true;<br />
	return false;<br />
}´</p>
<p>You could may consider this in the next release, maybe it will help somebody else as well.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: New WordPress Plugin Releases for 06/02/10 &#124; WordPress How To Plugins, Themes Usability</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-515</link>
		<dc:creator>New WordPress Plugin Releases for 06/02/10 &#124; WordPress How To Plugins, Themes Usability</dc:creator>
		<pubDate>Mon, 08 Feb 2010 05:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-515</guid>
		<description>[...] 4: PHP Browser Detection: [...]</description>
		<content:encoded><![CDATA[<p>[...] 4: PHP Browser Detection: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Browser Detection Plugin für WordPress</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-514</link>
		<dc:creator>PHP Browser Detection Plugin für WordPress</dc:creator>
		<pubDate>Tue, 02 Feb 2010 14:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-514</guid>
		<description>[...] Browser Detection Plugin f&#252;r WordPress    2. Februar 2010 &#124;  Autor: KHK     Das WordPress PHP Browser Detection Plugin erkennt den Browser des Besuchers und sendet ein browserspezifisches [...]</description>
		<content:encoded><![CDATA[<p>[...] Browser Detection Plugin f&#252;r WordPress    2. Februar 2010 |  Autor: KHK     Das WordPress PHP Browser Detection Plugin erkennt den Browser des Besuchers und sendet ein browserspezifisches [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://martythornley.com/downloads/php-browser-detection/#comment-513</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Fri, 29 Jan 2010 05:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://martythornley.com/?page_id=742#comment-513</guid>
		<description>Hey Joseph,

Thanks for the heads-up. After a quick Google search I found the answer. The issue is with a change in the way the &#039;parse_ini_file()&#039; function called on line 116 of the plugin works in php 5.3.

I guess 5.3 reads a semi-colon on that line 49 of php_browscap.ini and gets tripped up. To fix, replace this from line 116 of php-browser-detection.php:

------------------------------------------------
$brows=parse_ini_file(realpath($browscap),true);
------------------------------------------------

with this:

------------------------------------------------
if (version_compare(PHP_VERSION, &#039;5.3.0&#039;) &gt;= 0) {
    $brows = parse_ini_file(realpath($browscap), true, INI_SCANNER_RAW);
}else{
    $brows = parse_ini_file(realpath($browscap),true);
}
-------------------
For the full explanation, you can read the forum post here: http://code.google.com/p/phpbrowscap/issues/detail?id=11.

You got to me just in time before I upload to the WordPress repository for version 1.0 of the plugin.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hey Joseph,</p>
<p>Thanks for the heads-up. After a quick Google search I found the answer. The issue is with a change in the way the &#8216;parse_ini_file()&#8217; function called on line 116 of the plugin works in php 5.3.</p>
<p>I guess 5.3 reads a semi-colon on that line 49 of php_browscap.ini and gets tripped up. To fix, replace this from line 116 of php-browser-detection.php:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
$brows=parse_ini_file(realpath($browscap),true);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>with this:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
if (version_compare(PHP_VERSION, &#8217;5.3.0&#8242;) &gt;= 0) {<br />
    $brows = parse_ini_file(realpath($browscap), true, INI_SCANNER_RAW);<br />
}else{<br />
    $brows = parse_ini_file(realpath($browscap),true);<br />
}<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
For the full explanation, you can read the forum post here: <a href="http://code.google.com/p/phpbrowscap/issues/detail?id=11" rel="nofollow">http://code.google.com/p/phpbrowscap/issues/detail?id=11</a>.</p>
<p>You got to me just in time before I upload to the WordPress repository for version 1.0 of the plugin.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->