Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/03/2010, 16:48
Avatar de danistrein
danistrein
 
Fecha de Ingreso: septiembre-2008
Ubicación: Salta Capital
Mensajes: 550
Antigüedad: 16 años, 6 meses
Puntos: 9
Respuesta: preg_match_all y file_get_contents

logre hacer funcionar el codigo, solamente era un problema con las comillas y en el preg_match_all no podía usar algunos caracteres :
Código PHP:
Ver original
  1. $options = array('http' => array(
  2. 'method'  => 'GET',
  3. 'header'  => 'Content-type: text/plain;charset=UTF-8\r\n'
  4. ));
  5.  
  6. $config= stream_context_create($options);
  7. $config_final=file_get_contents('http://www.musica.com/letras.asp?letra=825576',false, $config);
  8. preg_match_all("|<font style=line-height:20px;font-size:14px;font-family:arial,tahoma,verdana>(.*)</font>|sU", $config_final, $letra);
  9. echo $letra[1][0];
__________________
Appones.net - www.appones.net

Última edición por danistrein; 14/03/2010 a las 17:36