Fetch twitter updates via PHP

Want to display your (or maybe be someone else’s) public timeline using php? Ok, here’s the solution for it:

<?php
$username = “amanjain”;
$rssUrl = “http://twitter.com/statuses/user_timeline/$username.rss”;
$rss = @file_get_contents($rssUrl);

if($rss)
{
$xml = @simplexml_load_string($rss); Read the rest of this entry »