Perchè questo in locale funziona

if (file_exists ('c:/Programmi/Apache Group/Apache/test/images/foto_atleti_st1/'.$stringa.'.jpg') == false)
$stringa = "immagine_non_disponibile";

e questo on line no?????

if (file_exists ('http://www.xxxxxx.com/images/foto_atleti_st1/'.$stringa.'.jpg') == false)
$stringa = "immagine_non_disponibile";

Ho provato anche con

('http://ftp.xxxxxx.com/images/foto_atleti_st1/'.$stringa.'.jpg') ==
e
('ftp.xxxxxx.com/images/foto_atleti_st1/'.$stringa.'.jpg') ==
e
('www.xxxxxx.com/images/foto_atleti_st1/'.$stringa.'.jpg') ==

sò che procedere per tentativi non è il massimo ma....

Grazie Riccardo