
27/04/2010, 14:36
|
 | | | Fecha de Ingreso: agosto-2003
Mensajes: 1.495
Antigüedad: 21 años, 7 meses Puntos: 105 | |
Respuesta: publicar url Haber,
Código PHP:
Ver original$cadena = "termine el trabajo. http://www.trabajo.com/fin"; function clickable($url){ '`((?:https?|ftp)://\S+[[:alnum:]]/?)`si', '`((?<!//)(www\.\S+[[:alnum:]]/?))`si' ); '<a href="$1" rel=nofollow>$1</a> ', '<a href="http://$1" rel=\'nofollow\'>$1</a>' ); } echo clickable($cadena);
http://www.php.net/manual/en/functio...lace.php#85722
Saludos
Gildus
__________________ .: Gildus :. |