<?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: Building my own Twitter badge with RSS</title>
	<atom:link href="http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/</link>
	<description>journal of a design student</description>
	<lastBuildDate>Wed, 25 Nov 2009 14:41:43 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: benjamin foucaud</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-476</link>
		<dc:creator>benjamin foucaud</dc:creator>
		<pubDate>Thu, 12 Nov 2009 13:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-476</guid>
		<description>Hi ! 
thanks for this great tips,
i&#039;m sorry but I have a problem: it does work locally, but not online, it echoes : 
Cannot instantiate non-existent class: simplexmlelement in /homez.33/agencean/www/global/index.php on line 26

here is my code:
function DisplayTwitterFeed($feed_url, $num=10) {
 
$ch = curl_init(&quot;$feed_url&quot;);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	$data = curl_exec($ch);
	curl_close($ch);
 
	$x = new SimpleXmlElement($data);
 
	//echo &quot;&quot;;
 
	$i = 0;
 
	foreach($x-&gt;channel-&gt;item as $entry) {
        	if($i == $num) break;
			$i++;
 
		//get the content and cut out the first word which is always @whatever
		$tweet = $entry-&gt;title;
 
		
 
     	
 
			echo &quot;&quot;;
 
			$tweet = preg_replace(&#039;/(^&#124;[^a-z0-9_])@([a-z0-9_]+)/i&#039;, &#039;$1&lt;a href=&quot;http://twitter.com/$2&quot; rel=&quot;nofollow&quot;&gt;@$2&lt;/a&gt;&#039;, $tweet);
					echo $tweet.&quot; &quot;;
            echo &quot;&quot;;
			};
 
			
 
	};
 
I would be very happy if you could help me fix it, I&#039;m not that good in php.
thanks a lot. keep on great work !</description>
		<content:encoded><![CDATA[<p>Hi !<br />
thanks for this great tips,<br />
i&#8217;m sorry but I have a problem: it does work locally, but not online, it echoes :<br />
Cannot instantiate non-existent class: simplexmlelement in /homez.33/agencean/www/global/index.php on line 26</p>
<p>here is my code:<br />
function DisplayTwitterFeed($feed_url, $num=10) {</p>
<p>$ch = curl_init(&#8221;$feed_url&#8221;);<br />
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br />
	curl_setopt($ch, CURLOPT_HEADER, 0);<br />
	$data = curl_exec($ch);<br />
	curl_close($ch);</p>
<p>	$x = new SimpleXmlElement($data);</p>
<p>	//echo &#8220;&#8221;;</p>
<p>	$i = 0;</p>
<p>	foreach($x-&gt;channel-&gt;item as $entry) {<br />
        	if($i == $num) break;<br />
			$i++;</p>
<p>		//get the content and cut out the first word which is always @whatever<br />
		$tweet = $entry-&gt;title;</p>
<p>			echo &#8220;&#8221;;</p>
<p>			$tweet = preg_replace(&#8217;/(^|[^a-z0-9_])@([a-z0-9_]+)/i&#8217;, &#8216;$1<a href="http://twitter.com/$2" rel="nofollow">@$2</a>&#8216;, $tweet);<br />
					echo $tweet.&#8221; &#8220;;<br />
            echo &#8220;&#8221;;<br />
			};</p>
<p>	};</p>
<p>I would be very happy if you could help me fix it, I&#8217;m not that good in php.<br />
thanks a lot. keep on great work !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-468</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 29 Sep 2009 01:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-468</guid>
		<description>You would have to use the API for the then if it isn&#039;t in the RSS then you cant access it with this tutorial. Adding images next to tweets is outside the scope of this tutorial anyway which is just a quick easy way to show tweets on your website.</description>
		<content:encoded><![CDATA[<p>You would have to use the API for the then if it isn&#8217;t in the RSS then you cant access it with this tutorial. Adding images next to tweets is outside the scope of this tutorial anyway which is just a quick easy way to show tweets on your website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Honey Singh</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-461</link>
		<dc:creator>Honey Singh</dc:creator>
		<pubDate>Wed, 16 Sep 2009 15:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-461</guid>
		<description>How to include the avatar images along with the tweets. In the twitter rss their isn&#039;t the img options !</description>
		<content:encoded><![CDATA[<p>How to include the avatar images along with the tweets. In the twitter rss their isn&#8217;t the img options !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://www.digiwu.com &#187; Blog Archive &#187; 50 Twitter Tools and Tutorials For Designers and Developers</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-303</link>
		<dc:creator>http://www.digiwu.com &#187; Blog Archive &#187; 50 Twitter Tools and Tutorials For Designers and Developers</dc:creator>
		<pubDate>Tue, 03 Mar 2009 13:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-303</guid>
		<description>[...] Building My Own Twitter Badge with RSS In this tutorial, you will make your own Twitter badge with PHP by reading the RSS feed that Twitter provides. The default Twitter badge uses script tags that do not display when a user has JavaScript disabled. This code will render no matter what and still displays links and the names of tweeters. [...]</description>
		<content:encoded><![CDATA[<p>[...] Building My Own Twitter Badge with RSS In this tutorial, you will make your own Twitter badge with PHP by reading the RSS feed that Twitter provides. The default Twitter badge uses script tags that do not display when a user has JavaScript disabled. This code will render no matter what and still displays links and the names of tweeters. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50 Twitter Tools and Tutorials For Designers and Developers &#124; ClickLogin Web Design</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-302</link>
		<dc:creator>50 Twitter Tools and Tutorials For Designers and Developers &#124; ClickLogin Web Design</dc:creator>
		<pubDate>Tue, 03 Mar 2009 12:57:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-302</guid>
		<description>[...] Building My Own Twitter Badge with RSS In this tutorial, you will make your own Twitter badge with PHP by reading the RSS feed that Twitter provides. The default Twitter badge uses script tags that do not display when a user has JavaScript disabled. This code will render no matter what and still displays links and the names of tweeters. [...]</description>
		<content:encoded><![CDATA[<p>[...] Building My Own Twitter Badge with RSS In this tutorial, you will make your own Twitter badge with PHP by reading the RSS feed that Twitter provides. The default Twitter badge uses script tags that do not display when a user has JavaScript disabled. This code will render no matter what and still displays links and the names of tweeters. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50 Công cụ Twitter hay dành cho Designers và Developers &#124; Giải Pháp Số</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-301</link>
		<dc:creator>50 Công cụ Twitter hay dành cho Designers và Developers &#124; Giải Pháp Số</dc:creator>
		<pubDate>Tue, 03 Mar 2009 03:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-301</guid>
		<description>[...] Building My Own Twitter Badge with RSS In this tutorial, you will make your own Twitter badge with PHP by reading the RSS feed that Twitter provides. The default Twitter badge uses script tags that do not display when a user has JavaScript disabled. This code will render no matter what and still displays links and the names of tweeters. [...]</description>
		<content:encoded><![CDATA[<p>[...] Building My Own Twitter Badge with RSS In this tutorial, you will make your own Twitter badge with PHP by reading the RSS feed that Twitter provides. The default Twitter badge uses script tags that do not display when a user has JavaScript disabled. This code will render no matter what and still displays links and the names of tweeters. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 50 Twitter Tools and Tutorials For Designers and Developers &#124; Developer&#39;s Toolbox &#124; Smashing Magazine</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-300</link>
		<dc:creator>50 Twitter Tools and Tutorials For Designers and Developers &#124; Developer&#39;s Toolbox &#124; Smashing Magazine</dc:creator>
		<pubDate>Mon, 02 Mar 2009 19:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-300</guid>
		<description>[...] Building My Own Twitter Badge with RSS In this tutorial, you will make your own Twitter badge with PHP by reading the RSS feed that Twitter provides. The default Twitter badge uses script tags that do not display when a user has JavaScript disabled. This code will render no matter what and still displays links and the names of tweeters. [...]</description>
		<content:encoded><![CDATA[<p>[...] Building My Own Twitter Badge with RSS In this tutorial, you will make your own Twitter badge with PHP by reading the RSS feed that Twitter provides. The default Twitter badge uses script tags that do not display when a user has JavaScript disabled. This code will render no matter what and still displays links and the names of tweeters. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-209</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 12 Feb 2009 00:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-209</guid>
		<description>Still seemed like a good idea to tell people about it and link them to a good source. Im doing an update of the article soon with the official API.</description>
		<content:encoded><![CDATA[<p>Still seemed like a good idea to tell people about it and link them to a good source. Im doing an update of the article soon with the official API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-204</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 10 Feb 2009 14:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-204</guid>
		<description>Thanks for the link to my article on cURL and allow_url_fopen. allow_url_fopen is not a security risk by itself, you just need to be careful about the sites you use it to access and to not allow user input to dictate what it accesses.

Great article, by the way. :)</description>
		<content:encoded><![CDATA[<p>Thanks for the link to my article on cURL and allow_url_fopen. allow_url_fopen is not a security risk by itself, you just need to be careful about the sites you use it to access and to not allow user input to dictate what it accesses.</p>
<p>Great article, by the way. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.upsidedowncity.net/building-my-own-twitter-badge-with-rss/comment-page-1/#comment-63</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Thu, 30 Oct 2008 15:49:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.upsidedowncity.net/?p=406#comment-63</guid>
		<description>Thanks for that. I have used the Simple XML component before, but never really found a good use for it. This might be just that.</description>
		<content:encoded><![CDATA[<p>Thanks for that. I have used the Simple XML component before, but never really found a good use for it. This might be just that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
