<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for FilChi Weblog</title>
	<atom:link href="http://filchiprogrammer.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://filchiprogrammer.wordpress.com</link>
	<description>Just another PHP Developer's weblog</description>
	<lastBuildDate>Thu, 26 Nov 2009 10:52:36 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on xampp on usb by sasa</title>
		<link>http://filchiprogrammer.wordpress.com/2008/07/29/xampp-on-usb/#comment-613</link>
		<dc:creator>sasa</dc:creator>
		<pubDate>Thu, 26 Nov 2009 10:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/?p=142#comment-613</guid>
		<description>Vrlo dobro!</description>
		<content:encoded><![CDATA[<p>Vrlo dobro!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tips on creating web apps by Evan Roey</title>
		<link>http://filchiprogrammer.wordpress.com/2008/08/26/tips-on-creating-web-apps/#comment-612</link>
		<dc:creator>Evan Roey</dc:creator>
		<pubDate>Tue, 24 Nov 2009 12:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/?p=193#comment-612</guid>
		<description>These tips are very helpful for the beginner web developer.
&lt;a href=&quot;http://www.lifestylerescue.com/experts/computers-programming-advice/web-development&quot; rel=&quot;nofollow&quot;&gt;Computer And Web Development Experts&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>These tips are very helpful for the beginner web developer.<br />
<a href="http://www.lifestylerescue.com/experts/computers-programming-advice/web-development" rel="nofollow">Computer And Web Development Experts</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Creating a sample Hello World Adobe AIR application with HTML and Javascript by Mayur</title>
		<link>http://filchiprogrammer.wordpress.com/2008/03/12/creating-a-sample-hello-world-adobe-air-application-with-html-and-javascript/#comment-611</link>
		<dc:creator>Mayur</dc:creator>
		<pubDate>Sat, 31 Oct 2009 12:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/?p=81#comment-611</guid>
		<description>In my case
When I copy 3 files mentioned above in the BIN directory, and using first command then it is giving error 

application descriptor not found

Please tell me how to do it as I am new to AIR programming.</description>
		<content:encoded><![CDATA[<p>In my case<br />
When I copy 3 files mentioned above in the BIN directory, and using first command then it is giving error </p>
<p>application descriptor not found</p>
<p>Please tell me how to do it as I am new to AIR programming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting the first monday of the month by Find the first weekday of a month &#171; Mulazmat Blog</title>
		<link>http://filchiprogrammer.wordpress.com/2008/02/27/getting-the-first-monday-of-the-month/#comment-610</link>
		<dc:creator>Find the first weekday of a month &#171; Mulazmat Blog</dc:creator>
		<pubDate>Wed, 14 Oct 2009 04:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/?p=76#comment-610</guid>
		<description>[...] /&gt;&#8221;;    Share this post!  Twitter Digg Facebook Delicious StumbleUpon Google Bookmarks LinkedIn Technorati [...]</description>
		<content:encoded><![CDATA[<p>[...] /&gt;&#8221;;    Share this post!  Twitter Digg Facebook Delicious StumbleUpon Google Bookmarks LinkedIn Technorati [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Common programming trick questions by Victor Farazdagi</title>
		<link>http://filchiprogrammer.wordpress.com/2006/12/09/common-programming-trick-questions/#comment-609</link>
		<dc:creator>Victor Farazdagi</dc:creator>
		<pubDate>Mon, 12 Oct 2009 17:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/2006/12/09/common-programming-trick-questions/#comment-609</guid>
		<description>Well, more intuitive, and short solution to the first one would be:

list($a, $b) = array($b, $a);

It works with objects too, not only scalars.</description>
		<content:encoded><![CDATA[<p>Well, more intuitive, and short solution to the first one would be:</p>
<p>list($a, $b) = array($b, $a);</p>
<p>It works with objects too, not only scalars.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting the first monday of the month by phpcurious</title>
		<link>http://filchiprogrammer.wordpress.com/2008/02/27/getting-the-first-monday-of-the-month/#comment-608</link>
		<dc:creator>phpcurious</dc:creator>
		<pubDate>Tue, 06 Oct 2009 01:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/?p=76#comment-608</guid>
		<description>Hi Jordan.

You are correct that getting the first monday in PHP can be simply done using strtotime.

but take note that as it is stated in the documentation, 
&quot;In PHP 5 prior to 5.2.7, requesting a given occurrence of a given weekday in a month where that weekday was the first day of the month would incorrectly add one week to the returned timestamp. This has been corrected in 5.2.7 and later versions. &quot;

because of this, I tried this code: (my php version is 5.2.6)
[code language=&quot;php&quot;]
   strtotime(&quot;first monday -1 week&quot;);
[/code]

and it works!</description>
		<content:encoded><![CDATA[<p>Hi Jordan.</p>
<p>You are correct that getting the first monday in PHP can be simply done using strtotime.</p>
<p>but take note that as it is stated in the documentation,<br />
&#8220;In PHP 5 prior to 5.2.7, requesting a given occurrence of a given weekday in a month where that weekday was the first day of the month would incorrectly add one week to the returned timestamp. This has been corrected in 5.2.7 and later versions. &#8221;</p>
<p>because of this, I tried this code: (my php version is 5.2.6)</p>
<pre class="brush: php;">
   strtotime(&quot;first monday -1 week&quot;);
</pre>
<p>and it works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting the first monday of the month by Jordan</title>
		<link>http://filchiprogrammer.wordpress.com/2008/02/27/getting-the-first-monday-of-the-month/#comment-607</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Mon, 05 Oct 2009 14:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/?p=76#comment-607</guid>
		<description>There&#039;s a very simple way to do this in PHP. 

strtotime(&quot;monday october&quot;);

will return the first monday in october. If you want to get the second or third you could do the following:

$first_monday = strtotime(&quot;monday october&quot;);
$third_monday = strtotime(&quot;+2 weeks&quot;, $third_monday);

Sure, these are in epoch time (Seconds from 1/1970) but you can easily convert them using the date() function.

Cheers,
J</description>
		<content:encoded><![CDATA[<p>There&#8217;s a very simple way to do this in PHP. </p>
<p>strtotime(&#8220;monday october&#8221;);</p>
<p>will return the first monday in october. If you want to get the second or third you could do the following:</p>
<p>$first_monday = strtotime(&#8220;monday october&#8221;);<br />
$third_monday = strtotime(&#8220;+2 weeks&#8221;, $third_monday);</p>
<p>Sure, these are in epoch time (Seconds from 1/1970) but you can easily convert them using the date() function.</p>
<p>Cheers,<br />
J</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to call a controller/action in crontab? by neel</title>
		<link>http://filchiprogrammer.wordpress.com/2008/01/08/how-to-call-a-controlleraction-in-crontab/#comment-606</link>
		<dc:creator>neel</dc:creator>
		<pubDate>Wed, 30 Sep 2009 12:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/2008/01/08/how-to-call-a-controlleraction-in-crontab/#comment-606</guid>
		<description>Nice article it works for me. thanks</description>
		<content:encoded><![CDATA[<p>Nice article it works for me. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting the first monday of the month by Pete</title>
		<link>http://filchiprogrammer.wordpress.com/2008/02/27/getting-the-first-monday-of-the-month/#comment-605</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Sun, 20 Sep 2009 12:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/?p=76#comment-605</guid>
		<description>Actually, this is better than the last comment - as it&#039;ll return the correct date if the first Saturday (for example) is on the 1st (i.e. First Saturday in August 2009)


function getStartDay($day,$month,$year){
	
	$firstWeekDay = date(&#039;d/m/Y&#039;,strtotime(&#039;First &#039;.$day.&#039; &#039;.date(&#039;&#039;.$month.&#039;/01/&#039;.$year.&#039;&#039;)));
	$firstDay = mktime(0,0,0,$month, 1, $year);
	$firstDayMonth = date(&#039;l&#039;, $firstDay);
	
	if ($day==$firstDayMonth) { return &quot;01/&quot;.$month.&quot;/&quot;.$year.&quot;&quot;; }
	else { return $firstWeekDay; }
		
}

echo getStartDay(&#039;Saturday&#039;,1,2009);</description>
		<content:encoded><![CDATA[<p>Actually, this is better than the last comment &#8211; as it&#8217;ll return the correct date if the first Saturday (for example) is on the 1st (i.e. First Saturday in August 2009)</p>
<p>function getStartDay($day,$month,$year){</p>
<p>	$firstWeekDay = date(&#8216;d/m/Y&#8217;,strtotime(&#8216;First &#8216;.$day.&#8217; &#8216;.date(&#8221;.$month.&#8217;/01/&#8217;.$year.&#8221;)));<br />
	$firstDay = mktime(0,0,0,$month, 1, $year);<br />
	$firstDayMonth = date(&#8216;l&#8217;, $firstDay);</p>
<p>	if ($day==$firstDayMonth) { return &#8220;01/&#8221;.$month.&#8221;/&#8221;.$year.&#8221;"; }<br />
	else { return $firstWeekDay; }</p>
<p>}</p>
<p>echo getStartDay(&#8216;Saturday&#8217;,1,2009);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Getting the first monday of the month by Pete</title>
		<link>http://filchiprogrammer.wordpress.com/2008/02/27/getting-the-first-monday-of-the-month/#comment-604</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Sun, 20 Sep 2009 11:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://filchiprogrammer.wordpress.com/?p=76#comment-604</guid>
		<description>How about this?

function getStartDay($day,$month,$year){
	
	return date(&#039;d/m/Y&#039;,strtotime(&#039;First &#039;.$day.&#039; &#039;.date(&#039;&#039;.$month.&#039;/01/&#039;.$year.&#039;&#039;)));
	
}

echo getStartDay(&#039;Monday&#039;,9,2009);</description>
		<content:encoded><![CDATA[<p>How about this?</p>
<p>function getStartDay($day,$month,$year){</p>
<p>	return date(&#8216;d/m/Y&#8217;,strtotime(&#8216;First &#8216;.$day.&#8217; &#8216;.date(&#8221;.$month.&#8217;/01/&#8217;.$year.&#8221;)));</p>
<p>}</p>
<p>echo getStartDay(&#8216;Monday&#8217;,9,2009);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
