Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/01/2011, 18:14
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Convertir una pagina en un source html

Código PHP:
<?php

$youtube 
file_get_contents('URL video');

preg_match('/<title>(.*?)<\/title>/is'$youtube$matches);

echo 
substr($matches[1], 23);

?>
Aunque mejor usa el API de YouTube