<?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>WEBNERD&#187; WTD</title>
	<atom:link href="http://www.webnerd.com.au/tag/wtd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webnerd.com.au</link>
	<description>Online Business for your Small Business</description>
	<lastBuildDate>Fri, 13 Jan 2012 18:34:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Add the What The Duck comic strip to your website using PHP</title>
		<link>http://www.webnerd.com.au/2008/07/add-the-what-the-duck-comic-strip-to-your-website/</link>
		<comments>http://www.webnerd.com.au/2008/07/add-the-what-the-duck-comic-strip-to-your-website/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 04:23:42 +0000</pubDate>
		<dc:creator>James Quinn-Hawtin</dc:creator>
				<category><![CDATA[Nerdy Stuff]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[What The Duck]]></category>
		<category><![CDATA[WTD]]></category>

		<guid isPermaLink="false">http://www.webnerd.com.au/wordpress/?p=5</guid>
		<description><![CDATA[If you&#8217;d like to add the hilarious comic strip What The Duck to your website, here is a quick and easy solution using PHP. First, we need a function that will fetch the What The Duck RSS feed and parse it into an array from which we can extract what data we want.  This function, [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;d like to add the hilarious comic strip <a class="offsite-link-inline" href="http://www.whattheduck.net/" target="_blank">What The Duck</a> to your website, here is a quick and easy solution using PHP.</p>

<p>First, we need a function that will fetch the What The Duck RSS feed and parse it into an array from which we can extract what data we want.  This function, below, is called getWhatTheDuck() .</p>

<p>Second, we need another function that will take that array of data and format it.  We can display just the latest comic strip or any number up to the total featured in the RSS feed.</p>

<p>For the purposes of this sharing of knowledge, the code will loop through the array and output everything that&#8217;s available.  It should be a simple matter to change the loop to go through only once if you only want to display the latest strip.</p>

<p><a class="offsite-link-inline" href="/whattheduck/wtd-code.php" target="_blank">See the PHP code</a></p>

<p><a class="offsite-link-inline" href="/whattheduck/wtd.php" target="_blank">See the PHP script in action</a></p>

<p><a href="/whattheduck/wtd.zip">Download the PHP script</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webnerd.com.au/2008/07/add-the-what-the-duck-comic-strip-to-your-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

