Ver Mensaje Individual
  #14 (permalink)  
Antiguo 24/10/2011, 19:19
Avatar de andresdzphp
andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 13 años, 7 meses
Puntos: 793
Respuesta: con php se pude hacer esto?

Si, no te funciona por limitaciones de tu hosting, te toca usar cURL:

Cita:
URL file-access is disabled in the server configuration
Código PHP:
Ver original
  1. <?php
  2. $c = curl_init('http://gdata.youtube.com/feeds/api/videos/osRddh2HSZI');
  3. curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
  4. $page = curl_exec($c);
  5. $sxe = new SimpleXMLElement($page);
  6. echo $sxe->title . '<br />';
  7. echo $sxe->content;

Si le haces un print_r a $sxe vas a ver todo lo que puedes sacar.
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP