Busque en la web alguna solucion porque no se trabajar bien con PHP y encontre esto. Lo tuve que modificar para mostrar mas de un mensaje, teniendo como resultado lo siguiente:
Código PHP:
function getTweets($username,$idnumber,$cant)
{
$twitter_feed = 'http://twitter.com/statuses/user_timeline/' . $idnumber . '.rss';
$ctx = stream_context_create(array('http' => array('timeout' => 1)));
$rawfeed = @file_get_contents($twitter_feed);
//
if ($rawfeed != FALSE)
{
$xml = new SimpleXmlElement($rawfeed);
//
for ($i = 0; $i < $cant; $i++)
{
$twt = $xml->channel->item[$i]->description;
$twt = str_replace($username . ': ','', $twt);
echo '<li>' . $twt . '</li>';
}
} else {
echo 'Parece que Twitter tiene ciertos problemas por el momento. Los mensajes se mostrarán cuando se restablezca el servicio, gracias.';
}
}
Como dije, no se trabajar bien con PHP y me gustaria que lo revisaran y sugieran alguna funcion que reconozca los @usuario y url's para que inserte automaticamente los <a href="">.
Pueden ver el script funcionando aqui, bajo el logo de Twitter.
De antemano muchas gracias a cualquier ayuda o idea que me puedan ofrecer.