Buon pomeriggio ho questa funzione:
che dovrebbe convertire un indirizzo testuale http://www.miosito.com/ in un link.Codice PHP:
function converti_in_link($testo){ $testo = eregi_replace("(http|https|ftp)://([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)","\\2", $testo); $testo = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})','\\1', $testo); return $testo;}
Purtroppo mi restituisce l'errore che è deprecato.
Ho provato a sostituirlo con ereg_replace, ma stessa storia.
Come risolvo?
Grazie mille.