this is what im using right now
$q=myhashsearch
echo "<h3>Twitter search results for '".$q."'</h3>";
## Echo the Search Data
foreach ($search_res->entry as $twit1) {
$description = $twit1->content;
$description = preg_replace("#(^|[\n ])@([^ \"\t\n\r<])#ise", "'\1<a href=\"http://www.twitter.com/\2\" >@\2</a>'", $description);
$description = preg_replace("#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t<])#ise", "'\1<a href=\"\2\" >\2</a>'", $description);
$description = preg_replace("#(^|[\n ])((www|ftp).[^ \"\t\n\r<]*)#ise", "'\1<a href=\"http://\2\" >\2</a>'", $description);
$retweet = strip_tags($description);
$date = strtotime($twit1->updated);
$dayMonth = date('d M', $date);
$year = date('y', $date);
$message = $row['content'];
$datediff = date_diff($theDate, $date);
echo "<div class='user'><a href=\"",$twit1->author->uri,"\" target=\"_blank\"><img border=\"0\" width=\"48\" class=\"twitter_thumb\" src=\"",$twit1->link[1]->attributes()->href,"\" title=\"", $twit1->author->name, "\" /></a>";
echo "<div class='text'>".$description."<div class='description'>From: ", $twit1->author->name," <a href='http://twitter.com/home?status=RT: ".$retweet."' target='_blank'>Retweet!</a></div><strong>".$datediff."</strong> </div><div class='clear'></div></div>";
$geo = (string) $twit1->author->geo->children('georss', true)->point; //<---PROBLEM POINT!!!!
echo $test;
echo '<pre>';
print_r($geo);
echo '</pre>';
I have googled some advice and seams that the points i want are:
<twitter:geo><georss:point>51.2529 -1.0987</georss:point></twitter:geo>
However, if i do a print_r() on my query $search_res, there is no sign of these points there and i get a Node no longer exists error
BUT, if i put this to the address par and search, these are present.
Any ides why i cant see them, and also how to show them in my code above
Thanks in advance