<?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: Techy Treasure #2: Twitter Buzz Widget</title>
	<atom:link href="http://www.sitepoint.com/blogs/2008/10/24/techy-treasure-2-twitter-buzz-widget/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2008/10/24/techy-treasure-2-twitter-buzz-widget/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Mon, 23 Nov 2009 05:23:27 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: funky house</title>
		<link>http://www.sitepoint.com/blogs/2008/10/24/techy-treasure-2-twitter-buzz-widget/comment-page-1/#comment-838755</link>
		<dc:creator>funky house</dc:creator>
		<pubDate>Tue, 25 Nov 2008 06:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3124#comment-838755</guid>
		<description>to Raena Jackson-Armitage:

so glad i finally got curl installed and working properly.. do not want to touch or recompile apache again.

thanks for the tip!</description>
		<content:encoded><![CDATA[<p>to Raena Jackson-Armitage:</p>
<p>so glad i finally got curl installed and working properly.. do not want to touch or recompile apache again.</p>
<p>thanks for the tip!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: somecallmejosh</title>
		<link>http://www.sitepoint.com/blogs/2008/10/24/techy-treasure-2-twitter-buzz-widget/comment-page-1/#comment-838582</link>
		<dc:creator>somecallmejosh</dc:creator>
		<pubDate>Tue, 25 Nov 2008 01:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3124#comment-838582</guid>
		<description>I&#039;m with you on the Twitter thing.  It feels very contrived.</description>
		<content:encoded><![CDATA[<p>I&#8217;m with you on the Twitter thing.  It feels very contrived.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Raena Jackson-Armitage</title>
		<link>http://www.sitepoint.com/blogs/2008/10/24/techy-treasure-2-twitter-buzz-widget/comment-page-1/#comment-816176</link>
		<dc:creator>Raena Jackson-Armitage</dc:creator>
		<pubDate>Sun, 26 Oct 2008 01:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=3124#comment-816176</guid>
		<description>If you&#039;re hosted in a place where fopen and the like aren&#039;t allowed, you can also do the proxy with curl.  It&#039;s not as stupendously simple, but it does get around that restriction.


&lt;pre&gt;&lt;code class=&quot;php&quot;&gt;
&lt;?php

&#160;&#160;&#160;&#160;header(&quot;Content-Type: text/xml&quot;); 

&#160;&#160;&#160;&#160;$twitter = &quot;http://search.twitter.com/search.atom?q=Foobar&quot;; 
&#160;&#160;&#160;&#160;echo get_some_contents($twitter);

function get_some_contents($site_uri) {
&#160;&#160;&#160;&#160;$curly = curl_init();
&#160;&#160;&#160;&#160;// adjust this timeout to taste 
&#160;&#160;&#160;&#160;$timeout = 5;
&#160;&#160;&#160;&#160;curl_setopt ($curly, CURLOPT_URL, $site_uri);
&#160;&#160;&#160;&#160;curl_setopt ($curly, CURLOPT_CONNECTTIMEOUT, $timeout);
&#160;&#160;&#160;&#160;// time for output
&#160;&#160;&#160;&#160;ob_start();
&#160;&#160;&#160;&#160;&#160;&#160;    curl_exec($curly);
&#160;&#160;&#160;&#160;&#160;&#160;    curl_close($curly);
&#160;&#160;&#160;&#160;&#160;&#160;    $got_contents = ob_get_contents();
&#160;&#160;&#160;&#160;ob_end_clean();

&#160;&#160;&#160;&#160;return $got_contents;
}

?&gt;
&lt;/code&gt;&lt;/pre&gt;



Apologies for any weird smart quotes that snuck in there.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re hosted in a place where fopen and the like aren&#8217;t allowed, you can also do the proxy with curl.  It&#8217;s not as stupendously simple, but it does get around that restriction.</p>
<pre><code class="php">
&lt;?php

&nbsp;&nbsp;&nbsp;&nbsp;header("Content-Type: text/xml"); 

&nbsp;&nbsp;&nbsp;&nbsp;$twitter = "http://search.twitter.com/search.atom?q=Foobar"; 
&nbsp;&nbsp;&nbsp;&nbsp;echo get_some_contents($twitter);

function get_some_contents($site_uri) {
&nbsp;&nbsp;&nbsp;&nbsp;$curly = curl_init();
&nbsp;&nbsp;&nbsp;&nbsp;// adjust this timeout to taste 
&nbsp;&nbsp;&nbsp;&nbsp;$timeout = 5;
&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt ($curly, CURLOPT_URL, $site_uri);
&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt ($curly, CURLOPT_CONNECTTIMEOUT, $timeout);
&nbsp;&nbsp;&nbsp;&nbsp;// time for output
&nbsp;&nbsp;&nbsp;&nbsp;ob_start();
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    curl_exec($curly);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    curl_close($curly);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    $got_contents = ob_get_contents();
&nbsp;&nbsp;&nbsp;&nbsp;ob_end_clean();

&nbsp;&nbsp;&nbsp;&nbsp;return $got_contents;
}

?&gt;
</code></pre>
<p>Apologies for any weird smart quotes that snuck in there.</p>]]></content:encoded>
	</item>
</channel>
</rss>
