<?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>The Pencil Guy &#187; php</title>
	<atom:link href="http://hourann.com/blog/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://hourann.com</link>
	<description>Hourann’s illogical blog</description>
	<lastBuildDate>Tue, 05 Jan 2010 06:46:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>A little catch-up post</title>
		<link>http://hourann.com/blog/2008/10/15/a-little-catch-up-post</link>
		<comments>http://hourann.com/blog/2008/10/15/a-little-catch-up-post#comments</comments>
		<pubDate>Thu, 16 Oct 2008 06:38:26 +0000</pubDate>
		<dc:creator>azza-bazoo</dc:creator>
				<category><![CDATA[]]></category>
		<category><![CDATA[abortion]]></category>
		<category><![CDATA[barack obama]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[economy]]></category>
		<category><![CDATA[john mccain]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[victoria]]></category>
		<category><![CDATA[wa]]></category>
		<category><![CDATA[washington dc]]></category>
		<category><![CDATA[zendcon08]]></category>

		<guid isPermaLink="false">http://hourann.com/?p=447</guid>
		<description><![CDATA[Blog, woe! I honestly didn&#8217;t mean so much neglect, although in my defence the Real World has been throwing me a fair few curve-balls lately. As a result of said curve-balls, I have a chance to travel! Thus I&#8217;m in Washington DC and just left the neighbourhood bar where I was watching the last presidential [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Blog, woe! I honestly didn&#8217;t mean so much neglect, although in my defence the Real World <em>has</em> been throwing me a fair few curve-balls lately.</li>
<li>As a result of said curve-balls, I have a chance to travel! Thus I&#8217;m in Washington DC and just left the neighbourhood bar where I was watching the last presidential debate (oh, and pretending to be an American). This was particularly entertaining for the jeers that spread through the room when the candidates spoke about the school system here! Both candidates did a decent job, although Obama didn&#8217;t really address the terribly unbalanced federal budget and McCain struck me as more than a tad hypocritical. My favourite quote from the locals: &#8220;I don&#8217;t care about the parties, I&#8217;m voting for <a href="http://en.wikipedia.org/wiki/D.C._Statehood">DC statehood</a>!&#8221;</li>
<li>A few weeks ago, I jumped on the tram to Santa Clara for the PHP developers&#8217; event <a href="http://www.zendcon.com">ZendCon</a>, which was awesome! I scored a <a href="http://www.amazon.com/Advanced-Ajax-Architecture-Best-Practices/dp/0131350641">book</a> because no one else knew about <a href="http://www.freedomscientific.com/fs_products/software_jaws.asp">JAWS</a> (tsk, tsk), and spent too much time at Yahoo&#8217;s party writing a solver for their Sudoku puzzle with Shaddy of <a href="http://learning.net">learning.net</a>! (Here&#8217;s <a href="http://hourann.com/2008/yahoodoku-solutions.html" title="HTML 7.5Mb">a few thousand solutions</a>). My favourite sessions were <a href="http://www.jpipes.com/">Jay Pipes</a> on databases (&#8220;<em>never</em> assume <em>anything</em> about <a href="http://www.informit.com/articles/article.aspx?p=377652&#038;seqNum=2">the MySQL optimiser</a>&#8220;) and <a href="http://terrychay.com/blog/">Terry Chay&#8217;s</a> uncon session with its <a href="http://twitter.com/dcousineau/statuses/926712840">gratuitous excrement references</a> <img src='http://hourann.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>The economic crisis that started in America and suddenly gripped the world had me quite startled! I mean, it was obvious that it was coming, but I&#8217;d have never predicted when or how bad (and the red arrows on my meagre NYSE portfolio demonstrate as much!). I am surprised by the measures that have been taken by governments (particularly the Americans!) in the hope of prompting a recovery &#8212; and yet John McCain still speaks of small-government conservatism! So much for laissez-faire.</li>
<li>Last week, Victoria <a href="http://www.abc.net.au/news/stories/2008/10/11/2388284.htm">formally decriminalised abortion</a>! This is pretty cool.</li>
<li>And finally, the Western Australian government has held together, hooray! although I&#8217;m yet to see them actually <em>do</em> anything, other than make threats like <a href="http://www.abc.net.au/news/stories/2008/10/16/2393268.htm">cutting the budget</a> a la John Howard&#8217;s first term.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hourann.com/blog/2008/10/15/a-little-catch-up-post/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing WordPress 2.1 + PHP 5 + HTTP 1.0</title>
		<link>http://hourann.com/blog/2007/03/31/fixing-wordpress-21-php-5-http-10</link>
		<comments>http://hourann.com/blog/2007/03/31/fixing-wordpress-21-php-5-http-10#comments</comments>
		<pubDate>Sat, 31 Mar 2007 12:03:17 +0000</pubDate>
		<dc:creator>azza-bazoo</dc:creator>
				<category><![CDATA[]]></category>
		<category><![CDATA[blank page]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[transfer-encoding]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hourann.com/blog/2007/03/31/fixing-wordpress-21-php-5-http-10</guid>
		<description><![CDATA[So I&#8217;ve finally figured out the random problems that were plaguing this blog. It all started when I upgraded to PHP 5.2.1, which breaks lots of functions that software like WordPress depends on. The obvious step, which I was silly enough to delay, is to upgrade WordPress and all plugins to their most recent versions, [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve finally figured out the random problems that were plaguing this blog. It all started when I upgraded to <a href="http://www.php.net/releases/5_2_1.php">PHP 5.2.1</a>, which <a href="http://trac.wordpress.org/ticket/3354">breaks</a> lots of functions that software like WordPress depends on. The obvious step, which I was silly enough to delay, is to upgrade WordPress and all plugins to their most recent versions, thus making life much easier. (Many plugins are bitten by <a href="http://www.semiologic.com/2007/01/13/php-52-compatible-scripts-and-wp-plugins/">output buffering changes</a>.)</p>
<p>But I was still having trouble due to <a href="http://trac.wordpress.org/ticket/3886">this nasty bug</a>, whereby recent versions of PHP plus recent versions of WordPress will cause the output to <em>always</em> be HTTP 1.1. Symptoms include seemingly random hex character strings scattered around your blog (such as when connecting via telnet), or blank pages that only affect some people. This is because HTTP 1.1 features, like the <a href="http://www.jmarshall.com/easy/http/#http1.1c2">chunked</a> transfer encoding, confuse clients that only speak 1.0 (including many commercial proxy servers and a lot of Python code built on <a href="http://www.feedparser.org">feedparser</a>). </p>
<p>The fix is to edit line 832 in <code>wp-includes/functions.php</code>. Replace this line in the <code>status_header</code> function:</p>
<blockquote><p><code>@header("HTTP/1.1 $header $text", true, $header);</code></p></blockquote>
<p>with this much happier code:</p>
<blockquote><p><code>@header($_SERVER["SERVER_PROTOCOL"]." ".$header." ".$text, true, $header);</code></p></blockquote>
<p>Also, I found that upgrading to 2.1 <a href="http://www.arnebrachhold.de/2007/03/03/fixing-error-bug-in-jeromes-keywords-and-wordpress-2-1">breaks the old version</a> of Jerome&#8217;s Keywords, and can unexpectedly <a href="http://wordpress.org/support/topic/110630">change your link category numbers</a>.</p>
<p><em>Update 16/5:</em> The problem has been fixed in <a href="http://wordpress.org/development/2007/05/wordpress-22/">WordPress 2.2</a>. Thanks Ryan!</p>
]]></content:encoded>
			<wfw:commentRss>http://hourann.com/blog/2007/03/31/fixing-wordpress-21-php-5-http-10/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

