Code:
<?php include("filename.html"); ?>
private function hyperlink($text) {
// match protocol://address/path/
$text = ereg_replace("[a-zA-Z]+://([.]?[a-zA-Z0-9_/-])*", "<a href=\"\\0\">\\0</a>", $text);
// match www.something
$text = ereg_replace("(^| )(www([.]?[a-zA-Z0-9_/-])*)",
ini_set('user_agent','ilovejames/1.0');
///// // feed // // LOADS THE RSS FEED FOR // LOOPS THROUGH AND FORMATS/FILTERS POSTS // PULLS THE TIMESTAMP OF THE LATEST UPDATE FROM THE DB // IF THERE ARE NEW POSTS, ADD THEM TO THE DATABASE /////
<?php
$twitterxml = simplexml_load_file("http://twitter.com/statuses/user_timeline/16428755.rss");
$tweet = str_replace("jamwil: ", "", $twitterxml->channel->item[0]->title);
echo $tweet;
?>
Leave a comment: