<?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>Money-Code &#187; curl</title>
	<atom:link href="http://www.money-code.com/tag/curl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Fri, 12 Feb 2010 18:27:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Including Twitter updates in your site</title>
		<link>http://www.money-code.com/2009/07/including-twitter-updates-in-your-site/</link>
		<comments>http://www.money-code.com/2009/07/including-twitter-updates-in-your-site/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 17:51:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=398</guid>
		<description><![CDATA[A client of mine wanted to include his Twitter feeds into his site. This is quite easy using the cURL library to access the Twitter RSS or XML feed. This might be a nice way to dynamically include additional content into your site. There are Twitter widgets that embed content into your site, but they [...]


Related posts:<ol><li><a href='http://www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/' rel='bookmark' title='Permanent Link: Dynamic XML/RSS Feed using PopShops'>Dynamic XML/RSS Feed using PopShops</a></li>
<li><a href='http://www.money-code.com/2007/10/paging-ebay-rss-results/' rel='bookmark' title='Permanent Link: Paging eBay RSS results'>Paging eBay RSS results</a></li>
<li><a href='http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/' rel='bookmark' title='Permanent Link: Including your WordPress blogs to a external website'>Including your WordPress blogs to a external website</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F07%2Fincluding-twitter-updates-in-your-site%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F07%2Fincluding-twitter-updates-in-your-site%2F" height="61" width="51" /></a></div><p>A client of mine wanted to include his Twitter feeds into his site. This is quite easy using the <a href="http://us.php.net/manual/en/book.curl.php" target="_blank">cURL library</a> to access the Twitter RSS or XML feed. This might be a nice way to dynamically include additional content into your site. There are Twitter widgets that embed content into your site, but they use JavaScript to do this. Personally, I want this content to be read by bots, so PHP/HTML integration is a good option.</p>
<p>Basically, using cURL, you can bring in the RSS feed or XML feed. The RSS feed only includes date and status, and the XML feed will give you additional information including profile information (website, bio, etc).</p>
<p>I wrote a simple custom function which I&#8217;ve used in other examples here on the site called send_request(). This calls the request for the RSS file.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">function</span> send_request<span class="br0">&#40;</span><span class="re0">$rest</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/global"><span class="kw3">global</span></a> <span class="re0">$rootpath</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$ch</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = curl_init<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$timeout</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= <span class="nu0">5</span>; <span class="co1">// set to zero for no timeout</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt <span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_URL, <span class="re0">$rest</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt <span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_RETURNTRANSFER, <span class="nu0">1</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt <span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_CONNECTTIMEOUT, <span class="re0">$timeout</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$file_contents</span> &nbsp;= @curl_exec<span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; curl_close<span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$file_contents</span>;<br />
<span class="br0">&#125;</span></div>
<p>This function can be on the same script or in a include file. Next we need to assemble the querystring to send to our function. The function will return the XML which we parse with <a href="http://us.php.net/manual/en/function.simplexml-load-string.php" target="_blank">simplexml_load_string()</a>. I should mention that this script will work with PHP compiled with simplexml and have cURL extension. If you&#8217;re using PHP4, you&#8217;ll need to use a different method to parse XML using DOM.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re0">$username</span>&nbsp; &nbsp; &nbsp; &nbsp;= <span class="st0">&#8216;hanjicode&#8217;</span>;<br />
<span class="re0">$rssUrl</span>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&#8216;http://twitter.com/statuses/user_timeline/&#8217;</span>.<span class="re0">$username</span>.<span class="st0">&#8216;.rss&#8217;</span>;<br />
<span class="re0">$rss_feed</span> &nbsp; &nbsp; &nbsp; = send_request<span class="br0">&#40;</span><span class="re0">$rssUrl</span><span class="br0">&#41;</span>;<br />
<span class="re0">$i</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="nu0">0</span>;</p>
<p><span class="kw1">if</span><span class="br0">&#40;</span><a href="http://www.php.net/strlen"><span class="kw3">strlen</span></a><span class="br0">&#40;</span><a href="http://www.php.net/trim"><span class="kw3">trim</span></a><span class="br0">&#40;</span><span class="re0">$rss_feed</span><span class="br0">&#41;</span><span class="br0">&#41;</span> &gt; <span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$resp</span>&nbsp; &nbsp;= simplexml_load_string<span class="br0">&#40;</span><span class="re0">$rss_feed</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><a href="http://www.php.net/isset"><span class="kw3">isset</span></a><span class="br0">&#40;</span><span class="re0">$resp</span>-&gt;<span class="me1">channel</span><span class="br0">&#41;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/sizeof"><span class="kw3">sizeof</span></a><span class="br0">&#40;</span><span class="re0">$resp</span>-&gt;<span class="me1">channel</span><span class="br0">&#41;</span> &gt; <span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$resp</span>-&gt;<span class="me1">channel</span>-&gt;<span class="me1">item</span> <span class="kw1">as</span> <span class="re0">$tweet</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$tweetDate</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="re0">$tweet</span>-&gt;<span class="me1">pubDate</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$tweetStatus</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = change_string<span class="br0">&#40;</span><span class="re0">$tweet</span>-&gt;<span class="me1">description</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$i</span> &lt; <span class="nu0">10</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$tweetStatus</span>&nbsp; &nbsp; = <a href="http://www.php.net/str_replace"><span class="kw3">str_replace</span></a><span class="br0">&#40;</span><span class="re0">$username</span>.<span class="st0">&#8216;: &#8216;</span>,<span class="st0">&#8221;</span>,<span class="re0">$tweetStatus</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$tweetDate</span>.<span class="st0">&#8216; &#8211; &#8216;</span>.<span class="re0">$tweetStatus</span>.<span class="st0">&#8216;</p>
<p>&#8216;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$i</span>++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div>
<p>It looks through the RSS result and displays the contents to the browser. Let me know if you have any suggestions with this script or if you have any problems. I&#8217;ll be more than happy to help.</p>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/' rel='bookmark' title='Permanent Link: Dynamic XML/RSS Feed using PopShops'>Dynamic XML/RSS Feed using PopShops</a></li>
<li><a href='http://www.money-code.com/2007/10/paging-ebay-rss-results/' rel='bookmark' title='Permanent Link: Paging eBay RSS results'>Paging eBay RSS results</a></li>
<li><a href='http://www.money-code.com/2009/08/including-your-wordpress-blogs-to-a-external-website/' rel='bookmark' title='Permanent Link: Including your WordPress blogs to a external website'>Including your WordPress blogs to a external website</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/07/including-twitter-updates-in-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic XML/RSS Feed using PopShops</title>
		<link>http://www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/</link>
		<comments>http://www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 21:37:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[popshops]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>Well, I noticed that I haven't added any code examples in a while, so here is a new one I'm working on now. <a href="http://www.popshops.com/" target="_blank" rel="nofollow">PopShops</a> is a great tool to display products from different merchant networks like Commission Junction, LinkShare, ShareASale, etc. You can quickly create product pages and have them delivered using multiple methods. Methods include javascript, PHP, XML, etc. </p>


Related posts:<ol><li><a href='http://www.money-code.com/2007/10/paging-ebay-rss-results/' rel='bookmark' title='Permanent Link: Paging eBay RSS results'>Paging eBay RSS results</a></li>
<li><a href='http://www.money-code.com/2009/07/including-twitter-updates-in-your-site/' rel='bookmark' title='Permanent Link: Including Twitter updates in your site'>Including Twitter updates in your site</a></li>
<li><a href='http://www.money-code.com/2009/06/parsing-xml-cj-product-feeds/' rel='bookmark' title='Permanent Link: Parsing XML CJ Product Feeds'>Parsing XML CJ Product Feeds</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2008%2F10%2Fdynamic-xmlrss-feed-using-popshops%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2008%2F10%2Fdynamic-xmlrss-feed-using-popshops%2F" height="61" width="51" /></a></div><p>Well, I noticed that I haven&#8217;t added any code examples in a while, so here is a new one I&#8217;m working on now. <a href="http://www.popshops.com/" target="_blank" rel="nofollow">PopShops</a> is a great tool to display products from different merchant networks like Commission Junction, LinkShare, ShareASale, etc. You can quickly create product pages and have them delivered using multiple methods. Methods include javascript, PHP, XML, etc. </p>
<p>I&#8217;ve been using the Pro account for a while on a single site. With my continuing efforts to become more diversified I&#8217;ve been focusing on more PopShop stores, so I upgraded my account to the Enterprise level. This is important if you want to have unlimited affiliate PIDs, etc. Currently the free or Pro option allows for one affiliate ID / merchant. So if you have many domains listed with CJ, you can only provide one PID to track. That&#8217;s a problem, and was an obvious choice to upgrade the account. If you upgrade you also get additional features like XML/RSS options for your store.</p>
<p>With this option you can easily create dynamic XML/RSS feeds. The example below is using XML, since I wanted price and image URLs to be parsed out of the content. RSS includes these directly in the &#8216;description&#8217; and would require additional, non-needed parsing. My example is also using PHP5&#8217;s <a href="http://us.php.net/manual/en/function.simplexml-load-string.php" target="_blank" rel="nofollow">simplexml_load_string() function</a>. You will need to make sure that PHP is compiled with simplexml support for this to work. If you&#8217;re using PHP4 you&#8217;ll most likely have to use <a href="http://us.php.net/manual/en/function.domxml-open-mem.php" target="_blank" rel="nofollow">domxml_open_mem()</a> for this to work. I will not cover/support PHP4 in this post.</p>
<p>You will need to follow these instructions listed at PopShops (<a href="http://www.popshops.com/faq/affiliate-rss-xml" target="_blank">http://www.popshops.com/faq/affiliate-rss-xml</a>)</p>
<p><strong>What you will need:</strong><br />
1. A enterprise account</p>
<p><strong>How you do it:</strong><br />
1. Go ahead and create your shop the normal way by searching and adding products.<br />
2. Go to the &#8216;Pop it in&#8217; tab.<br />
3. Select the &#8216;RSS2&#8242; or the &#8216;XML&#8217; option in the code drop down.<br />
4. Copy the link to the rss version of your shop, and paste it into the address bar of your favorite browser (FireFox). It should look something like this:<br /> http://shops.popshops.com/shops/c49&#8230;59d6dc61a73.rss<br />
5. You should see an RSS/XML version of your shop.<br />
6. Now just add ?psps_search=KEYWORDS obviously replacing KEYWORDS with whatever term you are searching on. You will now have a keyword driven RSS/XML feed. So for example:<br /> http://shops.popshops.com/shops/c49&#8230;earch=ipod+case</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="kw2">&lt;?php</span><br />
<span class="kw2">function</span> send_request<span class="br0">&#40;</span><span class="re0">$rest</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/global"><span class="kw3">global</span></a> <span class="re0">$rootpath</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$ch</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = curl_init<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$timeout</span> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; = <span class="nu0">5</span>; <span class="co1">// set to zero for no timeout</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt <span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_URL, <span class="re0">$rest</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt <span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_RETURNTRANSFER, <span class="nu0">1</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; curl_setopt <span class="br0">&#40;</span><span class="re0">$ch</span>, CURLOPT_CONNECTTIMEOUT, <span class="re0">$timeout</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$file_contents</span> &nbsp;= @curl_exec<span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; curl_close<span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">return</span> <span class="re0">$file_contents</span>;<br />
<span class="br0">&#125;</span></p>
<p><span class="re0">$count</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="kw2">false</span>;<br />
<span class="re0">$url</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="st0">&#8216;http://shops.popshops.com/shops/0snmheiasfasdeadsff_search=star+wars&#8217;</span>;<br />
<span class="re0">$rss_feed</span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = send_request<span class="br0">&#40;</span><span class="re0">$url</span><span class="br0">&#41;</span>;<br />
<span class="kw1">if</span><span class="br0">&#40;</span><a href="http://www.php.net/strlen"><span class="kw3">strlen</span></a><span class="br0">&#40;</span><a href="http://www.php.net/trim"><span class="kw3">trim</span></a><span class="br0">&#40;</span><span class="re0">$rss_feed</span><span class="br0">&#41;</span><span class="br0">&#41;</span> &gt; <span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$resp</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = simplexml_load_string<span class="br0">&#40;</span><span class="re0">$rss_feed</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$resp</span>-&gt;<span class="me1">product</span> <span class="kw1">as</span> <span class="re0">$item</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$count</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span class="kw2">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$item</span>-&gt;<span class="me1">name</span>.<span class="st0">&quot;<br />
&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$item</span>-&gt;<span class="me1">price</span>.<span class="st0">&quot;<br />
&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$item</span>-&gt;<span class="me1">description</span>.<span class="st0">&quot;<br />
&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$item</span>-&gt;<span class="me1">url</span>.<span class="st0">&quot;<br />
&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="re0">$item</span>-&gt;<span class="me1">large_image_url</span>.<span class="st0">&quot;<br />
&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot;</p>
<p>
&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span><br />
<span class="kw1">if</span><span class="br0">&#40;</span>!<span class="re0">$count</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8216;no records found&#8217;</span>;<br />
<span class="br0">&#125;</span><br />
<span class="kw2">?&gt;</span><br />
&nbsp;</div>


<p>Related posts:<ol><li><a href='http://www.money-code.com/2007/10/paging-ebay-rss-results/' rel='bookmark' title='Permanent Link: Paging eBay RSS results'>Paging eBay RSS results</a></li>
<li><a href='http://www.money-code.com/2009/07/including-twitter-updates-in-your-site/' rel='bookmark' title='Permanent Link: Including Twitter updates in your site'>Including Twitter updates in your site</a></li>
<li><a href='http://www.money-code.com/2009/06/parsing-xml-cj-product-feeds/' rel='bookmark' title='Permanent Link: Parsing XML CJ Product Feeds'>Parsing XML CJ Product Feeds</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->