<?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: Fetch twitter updates via PHP</title>
	<atom:link href="http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/</link>
	<description>Aman's Blog</description>
	<lastBuildDate>Sat, 19 Dec 2009 13:57:10 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Aman</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2694</link>
		<dc:creator>Aman</dc:creator>
		<pubDate>Mon, 31 Aug 2009 09:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2694</guid>
		<description>@Maarten: You can use a counter to count 5 tweets for date notation Timo has written a good piece of code :)</description>
		<content:encoded><![CDATA[<p>@Maarten: You can use a counter to count 5 tweets for date notation Timo has written a good piece of code <img src='http://blog.amanjain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timo</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2693</link>
		<dc:creator>Timo</dc:creator>
		<pubDate>Tue, 18 Aug 2009 20:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2693</guid>
		<description>I got it!
I edited the date-line (echo $tweet-&gt;pubDate.&quot;\n&quot;;) to be something like:
$d = explode(&quot;-&quot;, $date); 
$t = explode(&quot;:&quot;, $time);
$pubdate = date(&quot;r&quot;, mktime((int)$t[0], (int)$t[1], (int)$t[2], (int)$d[1], (int)$d[2], (int)$d[0])); 
echo date(&quot;d.m.Y, H:i&quot;, strtotime($tweet-&gt;pubDate)).&quot;\n&quot;;

Now I&#039;ve only to make the @-links clickable (when you answer someone) and links in tweets. It hink, I&#039;ll use preg_match</description>
		<content:encoded><![CDATA[<p>I got it!<br />
I edited the date-line (echo $tweet-&gt;pubDate.&#8221;\n&#8221;;) to be something like:<br />
$d = explode(&#8221;-&#8221;, $date);<br />
$t = explode(&#8221;:&#8221;, $time);<br />
$pubdate = date(&#8221;r&#8221;, mktime((int)$t[0], (int)$t[1], (int)$t[2], (int)$d[1], (int)$d[2], (int)$d[0]));<br />
echo date(&#8221;d.m.Y, H:i&#8221;, strtotime($tweet-&gt;pubDate)).&#8221;\n&#8221;;</p>
<p>Now I&#8217;ve only to make the @-links clickable (when you answer someone) and links in tweets. It hink, I&#8217;ll use preg_match</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timo</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2692</link>
		<dc:creator>Timo</dc:creator>
		<pubDate>Tue, 18 Aug 2009 19:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2692</guid>
		<description>Hello Aman,
this is really a nice little script. Thank you!
Is there a way to display the date in an other format, like you can do with date() or strftime()?</description>
		<content:encoded><![CDATA[<p>Hello Aman,<br />
this is really a nice little script. Thank you!<br />
Is there a way to display the date in an other format, like you can do with date() or strftime()?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maarten</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2690</link>
		<dc:creator>Maarten</dc:creator>
		<pubDate>Mon, 10 Aug 2009 18:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2690</guid>
		<description>I have a few questions:

How can I only display the latest 5 tweets?
How can I change the date notation?
How can I add an URL to the tweet?

And thanks for the great script!</description>
		<content:encoded><![CDATA[<p>I have a few questions:</p>
<p>How can I only display the latest 5 tweets?<br />
How can I change the date notation?<br />
How can I add an URL to the tweet?</p>
<p>And thanks for the great script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sea Squirt Genome</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2689</link>
		<dc:creator>Sea Squirt Genome</dc:creator>
		<pubDate>Tue, 04 Aug 2009 10:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2689</guid>
		<description>hm.. thank you..</description>
		<content:encoded><![CDATA[<p>hm.. thank you..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitter Search</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2682</link>
		<dc:creator>Twitter Search</dc:creator>
		<pubDate>Wed, 27 May 2009 00:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2682</guid>
		<description>thats great that you are talking about the twitter api,a good example of searching with the twitter api is on twiogle.com because you can search on twitter and google at the same time.</description>
		<content:encoded><![CDATA[<p>thats great that you are talking about the twitter api,a good example of searching with the twitter api is on twiogle.com because you can search on twitter and google at the same time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lil aka XaosQueen</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2680</link>
		<dc:creator>Lil aka XaosQueen</dc:creator>
		<pubDate>Thu, 21 May 2009 19:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2680</guid>
		<description>Hi there - GREAT little piece of code (can&#039;t wait to try it!) .. is there a way to get the updates of EVERYONE you are following to be parsed and re-posted via your own website (for my own reading - Twitter is blocked here but I use it to get info for work so they are cutting off their nose to spite their faces!)Thanks so much! ...</description>
		<content:encoded><![CDATA[<p>Hi there &#8211; GREAT little piece of code (can&#8217;t wait to try it!) .. is there a way to get the updates of EVERYONE you are following to be parsed and re-posted via your own website (for my own reading &#8211; Twitter is blocked here but I use it to get info for work so they are cutting off their nose to spite their faces!)Thanks so much! &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duncan</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2665</link>
		<dc:creator>Duncan</dc:creator>
		<pubDate>Fri, 27 Mar 2009 04:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2665</guid>
		<description>The reason you were getting that error is most likely because you have curly quotes - change all the double quotes to &#039;straight&#039; quotes</description>
		<content:encoded><![CDATA[<p>The reason you were getting that error is most likely because you have curly quotes &#8211; change all the double quotes to &#8217;straight&#8217; quotes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Checkout: send message from a PHP page using Twitter API at oneafrikan.com</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2655</link>
		<dc:creator>Checkout: send message from a PHP page using Twitter API at oneafrikan.com</dc:creator>
		<pubDate>Wed, 18 Feb 2009 11:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2655</guid>
		<description>[...] Fetch twitter updates via PHP http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Fetch twitter updates via PHP <a href="http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/" rel="nofollow">http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.amanjain.com/2009/01/fetch-twitter-updates-via-php/comment-page-1/#comment-2652</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 13 Feb 2009 12:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.amanjain.com/?p=120#comment-2652</guid>
		<description>Thank you for this!!! But I have a problem, i&#039;m very limited in PHP skill, I get this error:

&quot;Parse error: syntax error, unexpected &#039;:&#039; in /home/jamesca1/public_html/test.php on line 3&quot;

Code for simple page with twitter output:


 
  Twitter Test
 
 
channel-&gt;item as $tweet)
{
echo $tweet-&gt;pubDate.”\n”;
echo substr($tweet-&gt;description,10).”\n\n”;
}
}
else
{
echo “Error: RSS file not valid!”;
}
}
else
{
echo “Error: RSS file not found, dude. Username invalid or requires authentication”;
}
?&gt;



What am I doing wrong?</description>
		<content:encoded><![CDATA[<p>Thank you for this!!! But I have a problem, i&#8217;m very limited in PHP skill, I get this error:</p>
<p>&#8220;Parse error: syntax error, unexpected &#8216;:&#8217; in /home/jamesca1/public_html/test.php on line 3&#8243;</p>
<p>Code for simple page with twitter output:</p>
<p>  Twitter Test</p>
<p>channel-&gt;item as $tweet)<br />
{<br />
echo $tweet-&gt;pubDate.”\n”;<br />
echo substr($tweet-&gt;description,10).”\n\n”;<br />
}<br />
}<br />
else<br />
{<br />
echo “Error: RSS file not valid!”;<br />
}<br />
}<br />
else<br />
{<br />
echo “Error: RSS file not found, dude. Username invalid or requires authentication”;<br />
}<br />
?&gt;</p>
<p>What am I doing wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
