Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/04/2004, 11:53
Cocker
 
Fecha de Ingreso: noviembre-2002
Ubicación: Barcelona - España
Mensajes: 270
Antigüedad: 21 años, 4 meses
Puntos: 0
Hola Derkenuke, prueba esta función:
function linka3($mensaje) {
$mensaje = eregi_replace('(((f|ht){1}(tp|tps){1}://)[-a-zA-Z0-9@:%_+.~#?&//=]+)', '<a href="\1" target="_blank">\1</a>', $mensaje);
$mensaje = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_+.~#?&//=]+)', '\1<a href="http://\2" target="_blank">\2</a>', $mensaje);
return $mensaje;
}