<?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>just-a-blog &#187; apache</title>
	<atom:link href="http://www.bastian.name/labels/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bastian.name</link>
	<description>Aus dem Leben eines Computer-Junkies, der sich der konspirativen Gewalt der Multi-Medien nahezu ungefiltert ausgesetzt sieht.</description>
	<lastBuildDate>Sat, 12 Jun 2010 13:25:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Decode HTTP Chunked Transfer</title>
		<link>http://www.bastian.name/2007/09/decode-http-chunked-transfer.html</link>
		<comments>http://www.bastian.name/2007/09/decode-http-chunked-transfer.html#comments</comments>
		<pubDate>Fri, 14 Sep 2007 11:38:00 +0000</pubDate>
		<dc:creator>bastian</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programmierung]]></category>

		<guid isPermaLink="false">http://blog.bastian.name/?p=30</guid>
		<description><![CDATA[OK, mal wieder gab es ein Problem, welches irgendwie keine im Internet auffindbare Lösung hatte. Ich habe mit PHP einen &#8216;chunked&#8217;-http-body auswerten müssen und der sieht dann in etwa so aus:
12
Dies ist ein Test!
5
Blöd!
0
Jetzt galt es also eine kleine Funktion zu schreiben, welche mir das ganze in folgendes umwandelt:
Dies ist ein Test!Blöd!
Also erstmal geschaut was [...]]]></description>
			<content:encoded><![CDATA[<p>OK, mal wieder gab es ein Problem, welches irgendwie keine im Internet auffindbare Lösung hatte. Ich habe mit PHP einen &#8216;chunked&#8217;-http-body auswerten müssen und der sieht dann in etwa so aus:</p>
<blockquote><p>12<br />
Dies ist ein Test!<br />
5<br />
Blöd!<br />
0</p></blockquote>
<p>Jetzt galt es also eine kleine Funktion zu schreiben, welche mir das ganze in folgendes umwandelt:</p>
<blockquote><p>Dies ist ein Test!Blöd!</p></blockquote>
<p>Also erstmal geschaut was die Zahlen bedeuten. Sind natürlich hex-Werte mit der Länge des folgenden Chunks. Und am Ende kommt eine 0. Also folgende Funktion tut genau das!</p>
<pre>function decode_chunked($string) {
$lines = explode("\r\n",$string);
$i=0;
$length = 999;
$content = '';
foreach($lines as $line) {
$i++;
if ($i%2 == 1) {
$length = hexdec($line);
} elseif ($length == strlen($line)) {
$content .= $line;
}
if ($length == 0)
break;
}
return $content;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bastian.name/2007/09/decode-http-chunked-transfer.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>pcfg_openfile: unable to check htaccess file, ensure it is readable</title>
		<link>http://www.bastian.name/2007/09/pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable.html</link>
		<comments>http://www.bastian.name/2007/09/pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable.html#comments</comments>
		<pubDate>Mon, 10 Sep 2007 21:08:00 +0000</pubDate>
		<dc:creator>bastian</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[error_log]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.bastian.name/?p=31</guid>
		<description><![CDATA[Ich wusste es genau, &#8220;pcfg_openfile: unable to check htaccess file, ensure it is readable&#8221; hatte ich schonmal. Das Problem tritt auf, wenn (wodurch auch immer) der Webserver keine Leserechte auf das Webroot hat.
Einfach ein a+r aufs entsprechende Webroot und gut ist   Hoffentlich merke ich, und natürlich die betroffenen Personen, es sich diesmal&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Ich wusste es genau, &#8220;pcfg_openfile: unable to check htaccess file, ensure it is readable&#8221; hatte ich schonmal. Das Problem tritt auf, wenn (wodurch auch immer) der Webserver keine Leserechte auf das Webroot hat.</p>
<p>Einfach ein a+r aufs entsprechende Webroot und gut ist <img src='http://www.bastian.name/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Hoffentlich merke ich, und natürlich die <a href="http://blog.robert-kummer.de/">betroffenen Personen</a>, es sich diesmal&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bastian.name/2007/09/pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
