Konu içeriği: Metindeki web adreslerini otomatik link yapma
kod
Alıntı:
Kod:
function txt2link($text) {
$text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '<a href="\\1" target="_blank">\\1</a>', $text);
$text = eregi_replace('([[:space:]()[{}])( [Linkleri Görebilmek için Üye olmanız Gerekir. ÜYE OLMAK İÇİN TIKLAYINIZ... ] )', '\\1<a href="http://\\2" target="_blank">\\2</a>', $text);
$text = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})', '<a href="mailto:\\1">\\1</a>', $text);
$regexp ...