<?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>Book of Saturday &#187; php</title>
	<atom:link href="http://phnk.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://phnk.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 18:48:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MSIE</title>
		<link>http://phnk.com/2010/07/14/msie/</link>
		<comments>http://phnk.com/2010/07/14/msie/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 00:50:18 +0000</pubDate>
		<dc:creator>phnk</dc:creator>
				<category><![CDATA[Varia]]></category>
		<category><![CDATA[msie]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://phnk.com/?p=165</guid>
		<description><![CDATA[For many reasons that involve user as well as company path dependence and carelessness, Microsoft Internet Explorer systematically lags behind in terms of proper HTML and CSS rendering. When viewed under MSIE 6/5.5-, the Google Font API does not seem to load (even though Google seems to say MSIE 6 is supported), and this website [...]]]></description>
			<content:encoded><![CDATA[<p>For many reasons that involve user as well as company path dependence and carelessness, Microsoft Internet Explorer systematically lags behind in terms of proper HTML and CSS rendering. When <a href="http://ipinfo.info/netrenderer/index.php">viewed under</a> MSIE 6/5.5-, the <a href="http://code.google.com/webfonts">Google Font</a> API does not seem to load (even though Google <a href="http://code.google.com/apis/webfonts/faq.html#Browsers_Supported">seems to say</a> MSIE 6 is supported), and this website does not render as it should, which frustrates my design senses.</p>

<p>The following piece of PHP code was appended on top of my <code>index.php</code> file, from my WordPress 3.0 distribution:</p>

<blockquote><code>if (eregi("MSIE",getenv("HTTP_USER_AGENT")) ||<br />
    eregi("Internet Explorer",getenv("HTTP_USER_AGENT"))) {<br />
    echo $msie_warning;<br />
    // exit;<br />
}</code></blockquote>

<p>The variable <code>$msie_warning</code> holds the HTML code for the following warning, which displays on top of all pages to viewers who send <code>MSIE</code> or <code>Internet Explorer</code> in their browser signatures:</p>

<blockquote>You are running Microsoft Internet Explorer, which is <a href="http://browsehappy.com/why/">unsafe</a> and will negatively affect your browsing experience. Please <a href="http://browsehappy.com/browsers/">use another browser</a> to visit this site, thanks!</blockquote>

<p>The original code <a href="http://www.devin.com/ieblock_howto.shtml#php">simply blocks</a> Microsoft Internet Explorer users, as shown by the commented <code>exit;</code> line, but I could not resolve myself to be that coercive. However, I do target <em>all</em> versions of the browser, even when they support the Google Font API and render pages almost correctly.</p>
]]></content:encoded>
			<wfw:commentRss>http://phnk.com/2010/07/14/msie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
