<?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>flowerpoop.com &#187; php</title>
	<atom:link href="http://flowerpoop.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://flowerpoop.com</link>
	<description>Poop from around the Globe</description>
	<lastBuildDate>Sat, 04 Sep 2010 05:28:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Zend Framework redirect within plugin</title>
		<link>http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/</link>
		<comments>http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 04:52:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://flowerpoop.com/?p=1431</guid>
		<description><![CDATA[if you ever need to redirect w/in a plugin $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper&#40;&#8216;redirector&#8217;&#41;; $redirector-&#62;gotoUrl&#40;&#8216;url&#8217;&#41;; Share this on del.icio.us Digg this! Post this on Diigo Post on Google Buzz Add this to Mister Wong Share this on Mixx Share this on Reddit Stumble upon something good? Share it on StumbleUpon Share this on Technorati Tweet This!]]></description>
			<content:encoded><![CDATA[<p>if you ever need to redirect w/in a plugin</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="re0">$redirector</span> <span class="sy0">=</span> Zend_Controller_Action_HelperBroker<span class="sy0">::</span><span class="me2">getStaticHelper</span><span class="br0">&#40;</span><span class="st_h">&#8216;redirector&#8217;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="re0">$redirector</span><span class="sy0">-&gt;</span><span class="me1">gotoUrl</span><span class="br0">&#40;</span><span class="st_h">&#8216;url&#8217;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</div>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/&amp;title=Zend+Framework+redirect+within+plugin" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/&amp;title=Zend+Framework+redirect+within+plugin" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/&amp;title=Zend+Framework+redirect+within+plugin&amp;desc=if%20you%20ever%20need%20to%20redirect%20w%2Fin%20a%20plugin%0D%0A%0D%0A%5Bcode%20lang%3D%22php%22%5D%24redirector%20%3D%20Zend_Controller_Action_HelperBroker%3A%3AgetStaticHelper%28%27redirector%27%29%3B%0D%0A%24redirector-%3EgotoUrl%28%27url%27%29%3B%0D%0A%5B%2Fcode%5D" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/&amp;bm_description=Zend+Framework+redirect+within+plugin&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/&amp;title=Zend+Framework+redirect+within+plugin" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/&amp;title=Zend+Framework+redirect+within+plugin" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/&amp;title=Zend+Framework+redirect+within+plugin" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Zend+Framework+redirect+within+plugin+-+http://b2l.me/afymn9&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://flowerpoop.com/2010/06/12/zend-framework-redirect-within-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php-take 2 dates and find out the rest of the dates in between with do-while loop</title>
		<link>http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/</link>
		<comments>http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 20:28:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[between]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://flowerpoop.com/?p=486</guid>
		<description><![CDATA[need a way to find all the dates in between? well this currently works with months. but can be adjusted to do days, years, etc. all you need to do is supply a begining date and an end date. it returns an array which can be used for anything, function between_dates&#40;$begin_date, $end_date&#41; &#123; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>need a way to find all the dates in between? well this currently works with months. but can be adjusted to do days, years, etc. all you need to do is supply a begining date and an end date. it returns an array which can be used for anything,</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="kw2">function</span> between_dates<span class="br0">&#40;</span><span class="re0">$begin_date</span><span class="sy0">,</span> <span class="re0">$end_date</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="re0">$t</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;Y-m&quot;</span><span class="sy0">,</span><a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$begin_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="re0">$i</span><span class="sy0">=</span><span class="nu0">0</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="kw1">do</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="re0">$my</span><span class="br0">&#91;</span><span class="re0">$i</span><span class="br0">&#93;</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;F Y&quot;</span><span class="sy0">,</span> <span class="br0">&#40;</span><a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="st0">&quot;<span class="es4">{$end_date}</span> +<span class="es4">$i</span> months&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="re0">$mys</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;Y-m&quot;</span><span class="sy0">,</span> <span class="br0">&#40;</span><a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="st0">&quot;<span class="es4">{$end_date}</span> +<span class="es4">$i</span> months&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="re0">$i</span><span class="sy0">++;</span><br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="kw1">while</span><span class="br0">&#40;</span><span class="re0">$mys</span> <span class="sy0">&lt;</span> <span class="re0">$t</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p>&nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$my</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div>
</div>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/&amp;title=php-take+2+dates+and+find+out+the+rest+of+the+dates+in+between+with+do-while+loop" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/&amp;title=php-take+2+dates+and+find+out+the+rest+of+the+dates+in+between+with+do-while+loop" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/&amp;title=php-take+2+dates+and+find+out+the+rest+of+the+dates+in+between+with+do-while+loop&amp;desc=need%20a%20way%20to%20find%20all%20the%20dates%20in%20between%3F%20well%20this%20currently%20works%20with%20months.%20but%20can%20be%20adjusted%20to%20do%20days%2C%20years%2C%20etc.%20all%20you%20need%20to%20do%20is%20supply%20a%20begining%20date%20and%20an%20end%20date.%20it%20returns%20an%20array%20which%20can%20be%20used%20for%20anything%2C%0D%0A%0D%0A%0D%0A%0D%0A%5Bcode%20lang%3D%22php%22%5D%0D%0Afunction%20between_dates%28%24begin_da" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/&amp;bm_description=php-take+2+dates+and+find+out+the+rest+of+the+dates+in+between+with+do-while+loop&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/&amp;title=php-take+2+dates+and+find+out+the+rest+of+the+dates+in+between+with+do-while+loop" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/&amp;title=php-take+2+dates+and+find+out+the+rest+of+the+dates+in+between+with+do-while+loop" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/&amp;title=php-take+2+dates+and+find+out+the+rest+of+the+dates+in+between+with+do-while+loop" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=php-take+2+dates+and+find+out+the+rest+of+the+dates+in+between+with+do-while+loo%5B..%5D+-+http://b2l.me/adrnvj&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://flowerpoop.com/2008/11/28/php-take-2-dates-and-find-out-the-rest-of-the-dates-in-between-with-do-while-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
