Ver Mensaje Individual
  #5 (permalink)  
Antiguo 14/02/2011, 12:37
Avatar de juanito1712
juanito1712
 
Fecha de Ingreso: mayo-2010
Ubicación: Valencia
Mensajes: 1.124
Antigüedad: 14 años
Puntos: 66
Respuesta: api youtube y problemas con el xml

ya lo he intentado antes
Código PHP:
Ver original
  1. <?php
  2.  
  3. // youtube interface
  4. $yt_urltot = "http://gdata.youtube.com/feeds/api/videos?";
  5. $yt_urltot.= "vq=buenafuente";
  6. $yt_urltot.= "&orderby=published";
  7. $yt_urltot.= "&start-index=1";
  8. $yt_urltot.= "&max-results=2";
  9. header('Content-Type: text/xml; charset=UTF-8');
  10. // ---------------
  11. $lineas = file($yt_urltot);
  12. $xml = simplexml_load_string($lineas);
  13. ?>
da el mismo error
no se que haré mal o donde está el problema seguiré farolenado por la documentación a ver si saco algo en claro....