/ Published in: PHP

Genera links en base a http, www, ftp
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function ponerLinks( $str ){ $tmp = eregi_replace('((ftp|http|www)[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '<a href="\\1" target="_blank">\\1</a>', $str); }
Comments
