Devo parsare un file .xml che contiene tutti i tweets rilasciati da un utente.. provo ad aprire il file usando la funzione simplexml_load_file ma visualizzo alcuni errori.
Ecco il codice e gli errori:
Codice PHP:
error_reporting(-1);
$xml = simplexml_load_file("https://twitter.com/statuses/user_timeline/csampunofficial.xml");
var_dump( $xml );
Gli errori:
Codice:
Warning: simplexml_load_file(https://twitter.com/statuses/user_timeline/csampunofficial.xml) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /membri/imghosting/index.php on line 3
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "https://twitter.com/statuses/user_timeline/csampunofficial.xml" in /membri/imghosting/index.php on line 3