Excellent, this isnt the way I used todo it, can't remember - but works!
remembered the other way! I am been stupidPHP Code:<?php
$twitterUser = 'ajaxsm';
$twitterRSS = file_get_contents( "http://twitter.com/statuses/user_timeline/{$twitterUser}.rss" );
$twitterXML = new simpleXMLElement( $twitterRSS );
//echo username
echo $twitterXML->channel[0]->title . "<br>";
//echo url to user
echo $twitterXML->channel[0]->link . "<br>";
//latest status update
echo $twitterXML->channel[0]->item[0]->description . "<br>";
//2nd latest status update
echo $twitterXML->channel[0]->item[1]->description;
?>... writing now for you.





... writing now for you.

Reply With Quote






