Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/12/2012, 17:25
Avatar de xarmagedonx
xarmagedonx
 
Fecha de Ingreso: marzo-2009
Mensajes: 360
Antigüedad: 15 años, 2 meses
Puntos: 29
Exclamación Error con código en localhost (Notice: Undefined offset: 0 in...)

Hola, tengo un problema con mi código en localhost, uso wampserver.

El error es el siguiente:

Cita:
Notice: Undefined offset: 0 in C:\wamp\www\Test.php on line 74
Y me marca:
Cita:
Error, falló la inserción de datos
En la linea 74 tengo:

Código PHP:
preg_match_all("(<title>(.*)<\/title>)siU"$html$title);
$metas get_meta_tags($url1);
/* Linea 74 */ $title $title[1][0];
$titulo html_entity_decode("$title"ENT_QUOTES'UTF-8');
$descripcion = isset($metas["description"])?$metas["description"] : '';
$keywords = isset($metas["keywords"])?$metas["keywords"] : ''
Saben como se podría solucionar??

Saludos y gracias!

PD: Estaba intentando extraer contenido de un artículo de wikipedia