Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/09/2012, 10:47
Avatar de lukazz
lukazz
 
Fecha de Ingreso: marzo-2011
Mensajes: 88
Antigüedad: 14 años
Puntos: 3
Respuesta: extraer variables de un link de youtube, para conseguir la imagen

muchas gracias fueron de ayuda ya pude hacer lo que necesitaba, lo dejo por si alguien alguna vez tiene la misma duda


Código PHP:
<?php

$string 
'http://www.youtube.com/watch?v=30oa0b2mdUo&feature=g-logo-xit'
$mostrar=substr$stringstrpos($string'=')+1strpos($string'&')); 
$partesexplode("&"$mostrar); 
echo 
'<img src="http://img.youtube.com/vi/'.$partes[0].'/0.jpg
" width="40" height="40" />'
;
?>