<?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 simple PHP calendar function</title>
	<atom:link href="http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/</link>
	<description>Flipflops.org is about web development and fairly conceptual art</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:19:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Nats</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-12269</link>
		<dc:creator>Nats</dc:creator>
		<pubDate>Tue, 22 Sep 2009 15:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-12269</guid>
		<description>Every month appears with a day less that it should.  You should change the while condition.

Thanks for the code, by the way!</description>
		<content:encoded><![CDATA[<p>Every month appears with a day less that it should.  You should change the while condition.</p>
<p>Thanks for the code, by the way!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9302</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Thu, 01 May 2008 08:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9302</guid>
		<description>Hi Peter

The alternative to using it in a mod-rewrite type situation is just putting the year / month in the querystring e.g.

/calendar.php?year=2008&amp;month=june 

To go the querystring route you will need to edit line 89 of the function above that generates the back and forward links to output a link + querystring rather than just mod rewrite psuedo directory stuff.

To use something like /calendar/2008/june you will probably need to add a .htaccess file if you don&#039;t have one the rule would need to be something like:

&lt;code&gt;

RewriteEngine On

RewriteBase /

RewriteRule ^calendar/([0-9]+)/(*.)$ calendar.php?year=$1&amp;month=$2 [L]

&lt;/code&gt;

(haven&#039;t checked the above though - but you get the idea...)

p.s. there might still be a bug in the above code that won&#039;t show the last day of the month (can&#039;t remember if I have updated it yet).

p.s. 2 - worth looking at the new version of this at http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/</description>
		<content:encoded><![CDATA[<p>Hi Peter</p>
<p>The alternative to using it in a mod-rewrite type situation is just putting the year / month in the querystring e.g.</p>
<p>/calendar.php?year=2008&#038;month=june </p>
<p>To go the querystring route you will need to edit line 89 of the function above that generates the back and forward links to output a link + querystring rather than just mod rewrite psuedo directory stuff.</p>
<p>To use something like /calendar/2008/june you will probably need to add a .htaccess file if you don&#8217;t have one the rule would need to be something like:</p>
<p><code></p>
<p>RewriteEngine On</p>
<p>RewriteBase /</p>
<p>RewriteRule ^calendar/([0-9]+)/(*.)$ calendar.php?year=$1&#038;month=$2 [L]</p>
<p></code></p>
<p>(haven&#8217;t checked the above though &#8211; but you get the idea&#8230;)</p>
<p>p.s. there might still be a bug in the above code that won&#8217;t show the last day of the month (can&#8217;t remember if I have updated it yet).</p>
<p>p.s. 2 &#8211; worth looking at the new version of this at <a href="http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/" rel="nofollow">http://www.flipflops.org/2008/04/08/cakephp-calendar-helper/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petter Danielsen</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9296</link>
		<dc:creator>Petter Danielsen</dc:creator>
		<pubDate>Tue, 22 Apr 2008 22:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9296</guid>
		<description>$base_url - the url to send the back / foward links on to i.e. the address of page (the calendar expects to be in a mod re-written situation e.g. www.flipflops.org/calendar/2008/june)

What do you mean by that?

Can&#039;t get that mod re-written to work. When I click next -&gt; my browser opens some dirs that doesnt exist. What do I have to change? Thanks :)</description>
		<content:encoded><![CDATA[<p>$base_url &#8211; the url to send the back / foward links on to i.e. the address of page (the calendar expects to be in a mod re-written situation e.g. <a href="http://www.flipflops.org/calendar/2008/june" rel="nofollow">http://www.flipflops.org/calendar/2008/june</a>)</p>
<p>What do you mean by that?</p>
<p>Can&#8217;t get that mod re-written to work. When I click next -&gt; my browser opens some dirs that doesnt exist. What do I have to change? Thanks <img src='http://www.flipflops.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops.org &#187; Blog Archive &#187; CakePHP Calendar Helper</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9284</link>
		<dc:creator>Flipflops.org &#187; Blog Archive &#187; CakePHP Calendar Helper</dc:creator>
		<pubDate>Wed, 09 Apr 2008 09:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9284</guid>
		<description>[...] six months ago I wrote a post about a Simple PHP calendar function I had written and how it was also really easy to use as a CakePHP [...]</description>
		<content:encoded><![CDATA[<p>[...] six months ago I wrote a post about a Simple PHP calendar function I had written and how it was also really easy to use as a CakePHP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9214</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Tue, 26 Feb 2008 17:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9214</guid>
		<description>Hello, that&#039;s very nice. Could you please explain how you call the calendar function in a cakephp view ? Thanks again.</description>
		<content:encoded><![CDATA[<p>Hello, that&#8217;s very nice. Could you please explain how you call the calendar function in a cakephp view ? Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stupes</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9213</link>
		<dc:creator>Stupes</dc:creator>
		<pubDate>Sun, 24 Feb 2008 22:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9213</guid>
		<description>Awesome!  Thanks so much!</description>
		<content:encoded><![CDATA[<p>Awesome!  Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9170</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Wed, 30 Jan 2008 10:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9170</guid>
		<description>Hi Evert 

I know there are a few bugs - and thanks for posting details here  and as mentioned above in my previous comment I do intend to refactor and then publish this as a proper helper when I get a moment. 

In the meantime though it looks like some of you are finding it useful which is great.

John</description>
		<content:encoded><![CDATA[<p>Hi Evert </p>
<p>I know there are a few bugs &#8211; and thanks for posting details here  and as mentioned above in my previous comment I do intend to refactor and then publish this as a proper helper when I get a moment. </p>
<p>In the meantime though it looks like some of you are finding it useful which is great.</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flipflops</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9169</link>
		<dc:creator>Flipflops</dc:creator>
		<pubDate>Wed, 30 Jan 2008 10:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9169</guid>
		<description>Hi Andy

I&#039;m glad the calendar function is coming in useful for people. Yes you can re-use it - I&#039;m aware that there are a few bugs etc. but I haven&#039;t had a chance to update it yet (apologies)

I intended it to use the MIT license like Cake itself - when I re factored and cleaned up the code a bit.

So anyway feel free to use it but I would really appreciate a reference to the source in the code and if you have blog or website just a quick link back to fliplflops.org - but up to you. Somebody else contacted me about using the coed as the basis for a Cake Helper, but I don&#039;t know if they have released any code yet - but it might be worth looking in the bakery.

Cheers

John</description>
		<content:encoded><![CDATA[<p>Hi Andy</p>
<p>I&#8217;m glad the calendar function is coming in useful for people. Yes you can re-use it &#8211; I&#8217;m aware that there are a few bugs etc. but I haven&#8217;t had a chance to update it yet (apologies)</p>
<p>I intended it to use the MIT license like Cake itself &#8211; when I re factored and cleaned up the code a bit.</p>
<p>So anyway feel free to use it but I would really appreciate a reference to the source in the code and if you have blog or website just a quick link back to fliplflops.org &#8211; but up to you. Somebody else contacted me about using the coed as the basis for a Cake Helper, but I don&#8217;t know if they have released any code yet &#8211; but it might be worth looking in the bakery.</p>
<p>Cheers</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AndyB</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9168</link>
		<dc:creator>AndyB</dc:creator>
		<pubDate>Sat, 26 Jan 2008 20:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9168</guid>
		<description>Is this code open source? Can I reuse it? Under what licence?</description>
		<content:encoded><![CDATA[<p>Is this code open source? Can I reuse it? Under what licence?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evert</title>
		<link>http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9166</link>
		<dc:creator>Evert</dc:creator>
		<pubDate>Fri, 25 Jan 2008 12:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.flipflops.org/2007/09/21/a-simple-php-calendar-function/#comment-9166</guid>
		<description>Post went wrong?

But the at the last if-statement is needs to be
$day is smaller OR EQUAL to $days_in_month!</description>
		<content:encoded><![CDATA[<p>Post went wrong?</p>
<p>But the at the last if-statement is needs to be<br />
$day is smaller OR EQUAL to $days_in_month!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

