Ah ok... e prova con qualcosa del genere
oppure usa il codice di prima ma adattalo affinché cerchi ed eventualmente aggiunga anche il "www."Codice PHP:if (substr(strtolower($url), 0, 11) != 'http://www.')
{
$url = 'http://www.' . str_replace(array('http://', 'www.'), '', $url);
}

Rispondi quotando