<?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: Display Your Latest Tweet With PHP</title>
	<atom:link href="http://nickheer.com/blog/display-latest-tweet-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://nickheer.com/blog/display-latest-tweet-with-php/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Aug 2010 00:04:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: e-sushi</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-683</link>
		<dc:creator>e-sushi</dc:creator>
		<pubDate>Tue, 10 Aug 2010 00:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-683</guid>
		<description>Glad I could help!

By the way... been looking for your twttr account so I can follow you with my @esushi_tm account, but I can&#039;t find anything alike. You got a twitter.com account, don&#039;t you? ;)</description>
		<content:encoded><![CDATA[<p>Glad I could help!</p>
<p>By the way&#8230; been looking for your twttr account so I can follow you with my @esushi_tm account, but I can&#8217;t find anything alike. You got a twitter.com account, don&#8217;t you? ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachel J. Morris</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-682</link>
		<dc:creator>Rachel J. Morris</dc:creator>
		<pubDate>Tue, 13 Jul 2010 21:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-682</guid>
		<description>That should be &quot;return json_decode ( $twitterFeed ); 
without the equal sign. Oops.</description>
		<content:encoded><![CDATA[<p>That should be &#8220;return json_decode ( $twitterFeed );<br />
without the equal sign. Oops.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachel J. Morris</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-681</link>
		<dc:creator>Rachel J. Morris</dc:creator>
		<pubDate>Tue, 13 Jul 2010 21:30:26 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-681</guid>
		<description>You can also get the Twitter feed as a JSON object for PHP5+, which makes it waaaaay easier to parse, you can return it as an array:

&lt;code&gt;function GetTwitterFeed()
{
	$username = &quot;myname&quot;;
	$feed = &quot;http://search.twitter.com/search.json?q=from:&quot; . $username . &quot;&amp;rpp=1&quot;;
	$twitterFeed = file_get_contents( $feed );
	return = json_decode ( $twitterFeed );
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>You can also get the Twitter feed as a JSON object for PHP5+, which makes it waaaaay easier to parse, you can return it as an array:</p>
<p><code>function GetTwitterFeed()<br />
{<br />
	$username = "myname";<br />
	$feed = "http://search.twitter.com/search.json?q=from:" . $username . "&amp;rpp=1";<br />
	$twitterFeed = file_get_contents( $feed );<br />
	return = json_decode ( $twitterFeed );<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Display your tweets without JavaScript &#124; DarineKo.com</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-680</link>
		<dc:creator>Display your tweets without JavaScript &#124; DarineKo.com</dc:creator>
		<pubDate>Wed, 30 Jun 2010 21:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-680</guid>
		<description>[...] have found the solution on NickHeer.com ! Go to this page to get the code to display your latest tweets very simple with PHP or grab it [...]</description>
		<content:encoded><![CDATA[<p>[...] have found the solution on NickHeer.com ! Go to this page to get the code to display your latest tweets very simple with PHP or grab it [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-678</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 22 Jun 2010 21:31:19 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-678</guid>
		<description>Get it while it&#039;s hot: http://nickheer.com/go/oi711</description>
		<content:encoded><![CDATA[<p>Get it while it&#8217;s hot: <a href="http://nickheer.com/go/oi711" rel="nofollow">http://nickheer.com/go/oi711</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thomas</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-677</link>
		<dc:creator>thomas</dc:creator>
		<pubDate>Tue, 22 Jun 2010 20:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-677</guid>
		<description>Pastie.org isn&#039;t available for some reason, is there another way to grab the code?</description>
		<content:encoded><![CDATA[<p>Pastie.org isn&#8217;t available for some reason, is there another way to grab the code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-670</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 04 Jun 2010 20:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-670</guid>
		<description>e-sushi, that codes great. nice and clean, exactly what i was looking for.</description>
		<content:encoded><![CDATA[<p>e-sushi, that codes great. nice and clean, exactly what i was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-619</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 24 May 2010 20:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-619</guid>
		<description>Thanks very much for the new code. I&#039;m updating the original post with it.</description>
		<content:encoded><![CDATA[<p>Thanks very much for the new code. I&#8217;m updating the original post with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e-sushi</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-616</link>
		<dc:creator>e-sushi</dc:creator>
		<pubDate>Mon, 24 May 2010 11:48:47 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-616</guid>
		<description>Bah, wordpress breaking code in comments... grrr.
Ok, used pastie.org so grab the correct code over there at

http://pastie.org/974423</description>
		<content:encoded><![CDATA[<p>Bah, wordpress breaking code in comments&#8230; grrr.<br />
Ok, used pastie.org so grab the correct code over there at</p>
<p><a href="http://pastie.org/974423" rel="nofollow">http://pastie.org/974423</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: e-sushi</title>
		<link>http://nickheer.com/blog/display-latest-tweet-with-php/comment-page-1/#comment-615</link>
		<dc:creator>e-sushi</dc:creator>
		<pubDate>Mon, 24 May 2010 11:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://nickheer.com/?p=585#comment-615</guid>
		<description>You should really use PHP functions when they do the right thing.
All that replace stuff actually messes up in utf-8, breaking the text up badly and rendering it into unvalid, broken html.

Therefore, this code is more simple and more correct:

&lt;?php
$username = &quot;your_url_name_at_twitter&quot;;
$feed = &quot;http://search.twitter.com/search.atom?q=from:&quot; . $username . &quot;&amp;rpp=1&quot;;

function parse_feed($feed) {
    $stepOne = explode(&quot;&quot;, $feed);
    $stepTwo = explode(&quot;&quot;, $stepOne[1]);
    $tweet = $stepTwo[0];
	$tweet = htmlspecialchars_decode($tweet,ENT_QUOTES);
    return $tweet;
}

$twitterFeed = file_get_contents($feed);
echo(&#039;&quot;&#039;.parse_feed($twitterFeed).&#039;&quot;&#039;);
?&gt;</description>
		<content:encoded><![CDATA[<p>You should really use PHP functions when they do the right thing.<br />
All that replace stuff actually messes up in utf-8, breaking the text up badly and rendering it into unvalid, broken html.</p>
<p>Therefore, this code is more simple and more correct:</p>
<p>&lt;?php<br />
$username = &quot;your_url_name_at_twitter&quot;;<br />
$feed = &quot;http://search.twitter.com/search.atom?q=from:&quot; . $username . &quot;&amp;rpp=1&quot;;</p>
<p>function parse_feed($feed) {<br />
    $stepOne = explode(&quot;&#8221;, $feed);<br />
    $stepTwo = explode(&#8220;&#8221;, $stepOne[1]);<br />
    $tweet = $stepTwo[0];<br />
	$tweet = htmlspecialchars_decode($tweet,ENT_QUOTES);<br />
    return $tweet;<br />
}</p>
<p>$twitterFeed = file_get_contents($feed);<br />
echo(&#8216;&quot;&#8217;.parse_feed($twitterFeed).&#8217;&quot;&#8217;);<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
