ho trovato questa soluzione e mi pare funzioni.
Grazie lo stesso a quelli che hanno aperto il Thread
<?php
function view_twitter_status($username)
{
$twitter_url = "http://twitter.com/statuses/user_timeline/".$username.".xml?count=1"; // Twitter API Url
$buffer = file_get_contents($twitter_url); // Using the Twitter API Url retrieve the contents.
// Create a new SimpleXMLElement using the contents retrieved from Twitter.
$xml = new SimpleXMLElement($buffer);
// So now we need to get to obtaining the information we want.
$status_item = $xml->status;
$status = $status_item->text;
// Return $status which has the current status in it.
return $status;
}
//ESEMPIO APPLICATO
echo view_twitter_status("s_tropez");
?>
La soluzione l'ho trovata Qui

Rispondi quotando