i already have code to get last tweet using curl
<?php
$username = "xx";
$password = "xxx";
$timeline = curl_init("https://twitter.com/statuses/user_timeline.xml");
curl_setopt($timeline, CURLOPT_USERPWD, $username.":".$password);
curl_setopt($timeline, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($timeline);
$result = new simpleXMLElement($result);
echo $result->status[0]->text;
?>
and it works good and get my last tweet
my tweets contain url i want to open it using fopen
$link = fopen($result, "r");
fclose($link);
the last one doesn't work < so how to open the url i get from tweeter