<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Browser Sniffing with PHP</title>
	<link>http://www.adammessinger.com/2004/06/02/php-browser-sniffing</link>
	<description></description>
	<pubDate>Wed, 20 Aug 2008 10:28:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Mike Davidson: sIFR 2.0 RC 3 is Here... Come Get Some</title>
		<link>http://www.adammessinger.com/2004/06/02/php-browser-sniffing#comment-9680</link>
		<pubDate>Wed, 05 Apr 2006 01:04:55 +0000</pubDate>
		<guid>http://www.adammessinger.com/2004/06/02/php-browser-sniffing#comment-9680</guid>
					<description>&lt;!--%kramer-ref-pre%--&gt;[...] client detection. I posted on the topic in June, with links to a couple of ready-made PHP scripts. # February 1, 2005 02:00 PM     184  Mark Wubbenwrites: [...]&lt;!--%kramer-ref-post%--&gt;</description>
		<content:encoded><![CDATA[<p><!--%kramer-ref-pre%-->[&#8230;] client detection. I posted on the topic in June, with links to a couple of ready-made PHP scripts. # February 1, 2005 02:00 PM     184  Mark Wubbenwrites: [&#8230;]<!--%kramer-ref-post%-->
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Adam M.</title>
		<link>http://www.adammessinger.com/2004/06/02/php-browser-sniffing#comment-208</link>
		<pubDate>Fri, 13 Aug 2004 19:34:41 +0000</pubDate>
		<guid>http://www.adammessinger.com/2004/06/02/php-browser-sniffing#comment-208</guid>
					<description>Guy: I am not using the script myself. I got caught up in the transition from Movable Type to WordPress, and never managed to find time to implement the PHP sniffer. From looking over the sniffer's web page, however, I think selective CSS might work something like this:

&lt;code&gt;&amp;#60;?php if ($browser['type'] == 'Netscape' &amp;&amp; $browser['css'] == '2') { ?&amp;#62;&lt;/code&gt;
&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#60;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;ns.css&quot; media=&quot;screen&quot; /&amp;#62;&lt;/code&gt;
&lt;code&gt;&amp;#60;?php } elseif ($browser['type'] == 'Explorer' &amp;&amp; browser['css'] == '2') { ?&amp;#62;&lt;/code&gt;
&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#60;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;ie.css&quot; media=&quot;screen&quot; /&amp;#62;&lt;/code&gt;
&lt;code&gt;&amp;#60;?php } elseif ($browser['css'] == '2' &amp;&amp; (browser['dom'] == 'W3C' &amp;#124;&amp;#124; browser['dom'] == 'IE')) { ?&amp;#62;&lt;/code&gt;
&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#60;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;other.css&quot; media=&quot;screen&quot; /&amp;#62;&lt;/code&gt;
&lt;code&gt;&amp;#60;?php } else { ?&amp;#62;&lt;/code&gt;
&lt;code&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#60;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;plain.css&quot; media=&quot;screen&quot; /&amp;#62;&lt;/code&gt;
&lt;code&gt;&amp;#60;?php } ?&amp;#62;&lt;/code&gt;

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Guy: I am not using the script myself. I got caught up in the transition from Movable Type to WordPress, and never managed to find time to implement the PHP sniffer. From looking over the sniffer&#8217;s web page, however, I think selective CSS might work something like this:</p>
<p><code>&lt;?php if ($browser['type'] == 'Netscape' &#038;&#038; $browser['css'] == '2') { ?&gt;</code><br />
<code>&nbsp;&nbsp;&nbsp;&nbsp;&lt;link rel="stylesheet" type="text/css" href="ns.css" media="screen" /&gt;</code><br />
<code>&lt;?php } elseif ($browser['type'] == 'Explorer' &#038;&#038; browser['css'] == '2') { ?&gt;</code><br />
<code>&nbsp;&nbsp;&nbsp;&nbsp;&lt;link rel="stylesheet" type="text/css" href="ie.css" media="screen" /&gt;</code><br />
<code>&lt;?php } elseif ($browser['css'] == '2' &#038;&#038; (browser['dom'] == 'W3C' || browser['dom'] == 'IE')) { ?&gt;</code><br />
<code>&nbsp;&nbsp;&nbsp;&nbsp;&lt;link rel="stylesheet" type="text/css" href="other.css" media="screen" /&gt;</code><br />
<code>&lt;?php } else { ?&gt;</code><br />
<code>&nbsp;&nbsp;&nbsp;&nbsp;&lt;link rel="stylesheet" type="text/css" href="plain.css" media="screen" /&gt;</code><br />
<code>&lt;?php } ?&gt;</code></p>
<p>Hope that helps.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Guy</title>
		<link>http://www.adammessinger.com/2004/06/02/php-browser-sniffing#comment-207</link>
		<pubDate>Fri, 13 Aug 2004 13:45:58 +0000</pubDate>
		<guid>http://www.adammessinger.com/2004/06/02/php-browser-sniffing#comment-207</guid>
					<description>Are you using the script then? I was wondering how easy it would be to adapt so that you could pull in different css files depending on which browser you're using?</description>
		<content:encoded><![CDATA[<p>Are you using the script then? I was wondering how easy it would be to adapt so that you could pull in different css files depending on which browser you&#8217;re using?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
