ho provato così e pare che funzioni
Codice PHP:
    $file get_headers($urlbanner);
    if (!
stristr($file[0], "OK"))
    {
       echo 
"Il banner inserito non esiste.

\n"
;
    }