I'm kinda new to php and have no clue how to do this, but how would I
make links from the description field clickable? I know I need to add
<a href="link here"> text </a> but how do i go about doing it, below
is the coding I'm using currently.


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


<?php
$username = "RuneTweeter";
$rssUrl = "http://twitter.com/statuses/user_timeline/$username.rss?
count=5";
$rss = @file_get_contents($rssUrl);

if($rss){
$xml = @simplexml_load_string($rss);
if($xml !== false){

foreach($xml->channel->item as $tweet){

echo substr($tweet->pubDate,0, -6)."<br />";
echo substr($tweet->description,13)."<br />";
echo "<a href=\"{$tweet->link}\">{$tweet->link}</a><br /><br />";

}

}else{
echo "Error: RSS file not valid!";
}
}else{
echo "Error: RSS file not found. Username invalid or requires
authentication";
}
?>

Reply via email to