Codice PHP:
if ( @file_get_contents($url) !== FALSE //@ per evitare il warning
{
    echo 
'ok';
}
else
{
    echo 
'la pagina non esiste';