Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/12/2012, 18:36
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: Error con código en localhost (Notice: Undefined offset: 0 in...)

Me refiero a este patrón:
Código PHP:
Ver original
  1. preg_match_all("(<title>(.*)<\/title>)siU", $html, $title);
Le faltan los delimitadores:
Código PHP:
Ver original
  1. preg_match_all("#<title>(.*)<\/title>#siU", $html, $title);
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.