rendered paste body<?php $username = "sm"; $posts = simplexml_load_file("http://twitter.com/statuses/user_timeline/" . $username . ".rss"); foreach ($posts->channel->item as $post) { $twit = " " . substr(strstr($post->description, ": "), 2, strlen($post->description)) . " "; if ($mark = strpos($twit, "http://")) { $l = substr($twit, $mark, strlen($twit)); $l = substr($l, 0, strpos($l, " ")); $full_link = "<a href=\"$l\">$l</a>"; $twit = str_replace($l, $full_link, $twit); } echo "<hr><p>$twit <a href='{$post->link}'>#</a></p>"; }?>