Al ejecutarlo me sale lo siguiente:
Código PHP:
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: URL file-access is disabled in the server configuration in /homepages/2/d357915812/htdocs/stream/index.php on line 5
Warning: SimpleXMLElement::__construct(http://api.ustream.tv/xml/channel/all/search/username:eq:djboro88?key=0CCE0C3A3B6C885DBD2EBA5484CF97AB) [simplexmlelement.--construct]: failed to open stream: no suitable wrapper could be found in /homepages/2/d357915812/htdocs/stream/index.php on line 5
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: I/O warning : failed to load external entity "http://api.ustream.tv/xml/channel/all/search/username:eq:djboro88?key=0CCE0C3A3B6C885DBD2EBA5484CF97AB" in /homepages/2/d357915812/htdocs/stream/index.php on line 5
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /homepages/2/d357915812/htdocs/stream/index.php:5 Stack trace: #0 /homepages/2/d357915812/htdocs/stream/index.php(5): SimpleXMLElement->__construct('http://api.ustr...', 0, true) #1 {main} thrown in /homepages/2/d357915812/htdocs/stream/index.php on line 5
Puedes ver el resultado en:
http://djboro.es/stream/
La ruta donde está la información también es posible verse en php:
http://api.ustream.tv/php/channel/al...2EBA5484CF97AB
Y en JSON:
http://api.ustream.tv/json/channel/a...2EBA5484CF97AB
¿Existe alguna otra forma de extraer los datos y mostrarlos de una forma más ordenada?
Saludos !!