La funzione è questa...

Codice PHP:
function CodeUrl($url) {
if (
eregi("^(www\.|[url]http://www\.[/url])[a-z0-9_\.-]+(\.)[a-z]{2,6}$"trim($url)))
return 
1;
else
return 
0
Pensi sia lei il problema?