El script en cuestión es:
Código PHP:
    
//Conecto a la BD
require_once ("conn.php");
 
$rss = new DOMDocument();
//Cargo el Feed RSS
$rss->load('https://api.twitter.com/1/statuses/user_timeline.rss?user_id=201519348&count=20');
 
$feed = array();
foreach ($rss->getElementsByTagName('item') as $node) {
  $item = array ( 
    'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
    'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
    'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
    );
  array_push($feed, $item);
}
 
$limit = 20;
for($x=0;$x<$limit;$x++)
{
  
  $title = $feed[$x]['title'];
  $link = $feed[$x]['link'];
  $date = $feed[$x]['date'];
  
  //Saco el usuario de twitter
    $titulo_noticia = str_replace('USER_TWITTER:','',$title);
    $fecha_noticia = date('Y-m-d H:i:s',strtotime($date));
    $link_noticia = $link;
 
    //Busco si no hay un tweet igual cargado
    $tweetRepe = mysql_query ("SELECT * FROM noticias WHERE titulo_noticia = '$titulo_noticia'");
    $numeroTweetRepe=mysql_num_rows($tweetRepe);
    if ($numeroTweetRepe == '0')
    {
      mysql_query ("INSERT INTO noticias ... ");
    }
    else
    {
      //No hago nada
    }
} 
    El problema es que, no sé porqué, ahora me está dando error:
Código PHP:
   Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ')' in  ...  on line 11 
    Código PHP:
   'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 
    Gracias por la ayuda!
 

