I have this simple code retrieving data from an xml/rss feed url online. If i go to the path of the feed i can see it and it's working. The code works locally, using a local xml. When i put it online, though, the echo return nothing.
$xmldom = new DOMDocument();
$xmldom->load("url_path");
$nodo = $xmldom->getElementsByTagName("item");
echo $nodo;
Even an echo $xmldom->load("url_path"); return nothing (nor true nor false: nothing, i.e. empty string). Now why is this happening? Some server setting i can check? Some test i can run to check what is the problem? There's even no error in console shown (firebug).