<?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>Raketenblog &#187; PHP</title>
	<atom:link href="http://www.raketentim.de/blog/index.php/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raketentim.de/blog</link>
	<description></description>
	<lastBuildDate>Wed, 10 Aug 2011 00:56:38 +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>Body-Klasse aus URL generieren</title>
		<link>http://www.raketentim.de/blog/index.php/2009/10/30/body-klasse-aus-url-generieren/</link>
		<comments>http://www.raketentim.de/blog/index.php/2009/10/30/body-klasse-aus-url-generieren/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 12:24:30 +0000</pubDate>
		<dc:creator>raketentim</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://www.raketentim.de/blog/?p=2454</guid>
		<description><![CDATA[Ich brauchte gerade eine M&#246;glichkeit, um einfachen PHP-Dokumenten eine Body-Klasse mit Informationen aus dem URL-Pfad hinzuzuf&#252;gen. Herausgekommen ist dabei dieses kleine PHP-Script:
&#060;&#063;&#112;&#104;&#112;&#013;&#010;&#036;&#100;&#111;&#109;&#097;&#105;&#110;&#112;&#097;&#114;&#116;&#115;&#032;&#061;&#032;&#101;&#120;&#112;&#108;&#111;&#100;&#101;&#040;&#039;&#046;&#039;&#044;&#036;&#095;&#083;&#069;&#082;&#086;&#069;&#082;&#091;&#039;&#072;&#084;&#084;&#080;&#095;&#072;&#079;&#083;&#084;&#039;&#093;&#041;&#059;&#013;&#010;&#108;&#105;&#115;&#116;&#040;&#036;&#098;&#111;&#100;&#121;&#099;&#108;&#097;&#115;&#115;&#041;&#032;&#061;&#032;&#101;&#120;&#112;&#108;&#111;&#100;&#101;&#040;&#039;&#046;&#039;&#044;&#115;&#116;&#114;&#095;&#114;&#101;&#112;&#108;&#097;&#099;&#101;&#040;&#039;&#047;&#039;&#044;&#039;&#032;&#039;&#044;&#036;&#095;&#083;&#069;&#082;&#086;&#069;&#082;&#091;&#039;&#083;&#067;&#082;&#073;&#080;&#084;&#095;&#078;&#065;&#077;&#069;&#039;&#093;&#041;&#041;&#059;&#013;&#010;&#063;&#062;
Und so kann man dem Body-Tag dann die Informationen als Klasse hinzuf&#252;gen. 
&#060;&#098;&#111;&#100;&#121;&#032;&#099;&#108;&#097;&#115;&#115;&#061;&#034;&#060;&#063;&#112;&#104;&#112;&#032;&#101;&#099;&#104;&#111;&#032;&#034;&#036;&#098;&#111;&#100;&#121;&#099;&#108;&#097;&#115;&#115;&#034;&#059;&#032;&#063;&#062;&#034;&#062;
Vielleicht kann das ja noch jemand au&#223;er mir gebrauchen.
Nachtrag: 
Ganz vergessen &#8211; die Funktionsweise. Angenommen der Link zur Seite ist „http://example.com/hund/katze/maus.php“ dann [...]]]></description>
			<content:encoded><![CDATA[<p>Ich brauchte gerade eine M&#246;glichkeit, um einfachen PHP-Dokumenten eine Body-Klasse mit Informationen aus dem URL-Pfad hinzuzuf&#252;gen. Herausgekommen ist dabei dieses kleine PHP-Script:</p>
<p><span style="color:#555; font-family: Courier, "Courier New", monospace">&#060;&#063;&#112;&#104;&#112;&#013;&#010;&#036;&#100;&#111;&#109;&#097;&#105;&#110;&#112;&#097;&#114;&#116;&#115;&#032;&#061;&#032;&#101;&#120;&#112;&#108;&#111;&#100;&#101;&#040;&#039;&#046;&#039;&#044;&#036;&#095;&#083;&#069;&#082;&#086;&#069;&#082;&#091;&#039;&#072;&#084;&#084;&#080;&#095;&#072;&#079;&#083;&#084;&#039;&#093;&#041;&#059;&#013;&#010;&#108;&#105;&#115;&#116;&#040;&#036;&#098;&#111;&#100;&#121;&#099;&#108;&#097;&#115;&#115;&#041;&#032;&#061;&#032;&#101;&#120;&#112;&#108;&#111;&#100;&#101;&#040;&#039;&#046;&#039;&#044;&#115;&#116;&#114;&#095;&#114;&#101;&#112;&#108;&#097;&#099;&#101;&#040;&#039;&#047;&#039;&#044;&#039;&#032;&#039;&#044;&#036;&#095;&#083;&#069;&#082;&#086;&#069;&#082;&#091;&#039;&#083;&#067;&#082;&#073;&#080;&#084;&#095;&#078;&#065;&#077;&#069;&#039;&#093;&#041;&#041;&#059;&#013;&#010;&#063;&#062;</span></p>
<p>Und so kann man dem Body-Tag dann die Informationen als Klasse hinzuf&#252;gen. </p>
<p><span style="color:#555; font-family: Courier, "Courier New", monospace">&#060;&#098;&#111;&#100;&#121;&#032;&#099;&#108;&#097;&#115;&#115;&#061;&#034;&#060;&#063;&#112;&#104;&#112;&#032;&#101;&#099;&#104;&#111;&#032;&#034;&#036;&#098;&#111;&#100;&#121;&#099;&#108;&#097;&#115;&#115;&#034;&#059;&#032;&#063;&#062;&#034;&#062;</span></p>
<p>Vielleicht kann das ja noch jemand au&#223;er mir gebrauchen.</p>
<p><strong>Nachtrag: </strong><br />
Ganz vergessen &#8211; die Funktionsweise. Angenommen der Link zur Seite ist „http://example.com/hund/katze/maus.php“ dann w&#252;rde das Body-Tag so aussehen:<br />
<span style="color:#555; font-family: Courier, "Courier New", monospace">&#060;&#098;&#111;&#100;&#121;&#032;&#099;&#108;&#097;&#115;&#115;&#061;&#034;&#032;&#104;&#117;&#110;&#100;&#032;&#107;&#097;&#116;&#122;&#101;&#032;&#109;&#097;&#117;&#115;&#034;&#062;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raketentim.de/blog/index.php/2009/10/30/body-klasse-aus-url-generieren/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

