Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/01/2014, 09:12
Avatar de jonni09lo
jonni09lo
Colaborador
 
Fecha de Ingreso: septiembre-2011
Ubicación: Estigia
Mensajes: 1.471
Antigüedad: 12 años, 7 meses
Puntos: 397
Respuesta: Simple Xml php5

Y si pruebas esto

Código PHP:
Ver original
  1. <?php
  2. $opciones = array(
  3.     'http'=>array(
  4.         'method'=>"GET",
  5.         'header'=>"Content-type: text/xml\r\n",
  6.     )
  7. );
  8. $contexto = stream_context_create($opciones);
  9. $data = "http://alerts.weather.gov/cap/tx.php?x=1";
  10. $library = file_get_contents($data, false, $contexto);
  11. $library = new SimpleXMLElement($library);

Saludos
__________________
Haz preguntas inteligentes-Como ser Hacker
No hacer preguntas por mensaje privado. No sólo no es inteligente sino que es egoísta.