<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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 blog about web development and technology in general.</description>
	<lastBuildDate>Sat, 31 Jul 2010 02:57:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</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(&#039;m&#039;);
       if($m == &quot;12&quot; &#124;&#124; $m == &quot;01&quot; &#124;&#124; $m == &quot;02&quot; ) {
               $season = &quot;Summer&quot;;
       } elseif($m &gt;= &quot;03&quot; &amp;&amp; $m &lt;= &quot;05&quot;) {
               $season = &quot;Autumn&quot;;
       } elseif($m &gt;= &quot;06&quot; &amp;&amp; $m &lt;= &quot;08&quot;) {
               $season = &quot;Winter&quot;;
       } else {
               $season = &quot;Spring&quot;;
       }
       echo &quot;It&#039;s &quot; . $season . &quot;!&quot;;
?&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><code>< ?php<br />
       $m = date('m');<br />
       if($m == "12" || $m == "01" || $m == "02" ) {<br />
               $season = "Summer";<br />
       } elseif($m >= "03" &#038;&#038; $m < = "05") {<br />
               $season = "Autumn";<br />
       } elseif($m >= "06" &#038;&#038; $m < = "08") {<br />
               $season = "Winter";<br />
       } else {<br />
               $season = "Spring";<br />
       }<br />
       echo "It's " . $season . "!";<br />
?><br />
</code></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&#039;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>
