Hi every one i'm trying to build a simple script to read in a twitter feed and out the results.
The problem i am having is with the <twitter:source> tags from twitter. simplexml_load_file doe'snt seem to pick them up as a tag? i'm guessing it's somthing to do with the : in the tag?
does anyone know if this is limitation of simplexml_load_file or a way round this?
i have some simple code below that i'm testing with below.
$feed = 'http://twitter.com/statuses/user_timeline/183703964.rss';
$tweets = simplexml_load_file($feed);
foreach($tweets->channel->item as $i => $v)
{
echo $v->title . "<br />";
echo $v->twitter:source . "<br />";
}
i have looked at some other peoples scripts online and they all just look over the top for what i need to do.
Any help would be great!