<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: A collection of PHP code snippets</title>
	<atom:link href="http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/</link>
	<description>Ardamis is a tiny web design studio specializing in high-quality, handmade web sites.</description>
	<pubDate>Tue, 14 Oct 2008 21:11:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Nick</title>
		<link>http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-16970</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 30 Sep 2008 12:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-16970</guid>
		<description>What a great collection of snippets :P I will definatly use a few of them somewhere! 

I was reading over your season snippet, and was thinking could it be done like this? (modified for southern hemisphere seasons)

&lt;code&gt;&lt;?php
       $m = date('m');
       if($m == "12" &#124;&#124; $m == "01" &#124;&#124; $m == "02" ) {
               $season = "Summer";
       } elseif($m &gt;= "03" &#038;&#038; $m &lt;= "05") {
               $season = "Autumn";
       } elseif($m &gt;= "06" &#038;&#038; $m &lt;= "08") {
               $season = "Winter";
       } else {
               $season = "Spring";
       }
       echo "It's " . $season . "!";
?&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>What a great collection of snippets <img src='http://www.ardamis.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> I will definatly use a few of them somewhere! </p>
<p>I was reading over your season snippet, and was thinking could it be done like this? (modified for southern hemisphere seasons)</p>
<p></p><pre><code>&lt;?php
       $m = date('m');
       if($m == "12" || $m == "01" || $m == "02" ) {
               $season = "Summer";
       } elseif($m &gt;= "03" &amp;&amp; $m &lt;= "05") {
               $season = "Autumn";
       } elseif($m &gt;= "06" &amp;&amp; $m &lt;= "08") {
               $season = "Winter";
       } else {
               $season = "Spring";
       }
       echo "It's " . $season . "!";
?&gt;
</code></pre><p></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve McDaniel</title>
		<link>http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-16892</link>
		<dc:creator>Steve McDaniel</dc:creator>
		<pubDate>Fri, 12 Sep 2008 15:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-16892</guid>
		<description>Great snippets thanks!</description>
		<content:encoded><![CDATA[<p>Great snippets thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swisher</title>
		<link>http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-16463</link>
		<dc:creator>Swisher</dc:creator>
		<pubDate>Fri, 25 Jul 2008 20:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-16463</guid>
		<description>Nice code thanks! You should submit some to programminghelp.com I am sure they would love it.</description>
		<content:encoded><![CDATA[<p>Nice code thanks! You should submit some to programminghelp.com I am sure they would love it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ardamis</title>
		<link>http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-15486</link>
		<dc:creator>ardamis</dc:creator>
		<pubDate>Thu, 12 Jun 2008 02:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-15486</guid>
		<description>Try using 

&lt;code&gt;AddType application/x-httpd-php .html .htm&lt;/code&gt; 

with XAMPP.</description>
		<content:encoded><![CDATA[<p>Try using </p>
<p><code>AddType application/x-httpd-php .html .htm</code> </p>
<p>with XAMPP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fnfzone</title>
		<link>http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-15392</link>
		<dc:creator>fnfzone</dc:creator>
		<pubDate>Sun, 08 Jun 2008 17:39:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2007/12/15/a-collection-of-php-code-snippets/#comment-15392</guid>
		<description>AddHandler x-httpd-php .php .htm .html
Doesn't work with my local apache server. i use xamp please tell me whts the reason ?
thanks</description>
		<content:encoded><![CDATA[<p>AddHandler x-httpd-php .php .htm .html<br />
Doesn&#8217;t work with my local apache server. i use xamp please tell me whts the reason ?<br />
thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
