There is no way to check if file exists on server and be 100% that this is true. Because of file rights.
You can try to download the file and when it has right to be read then you can use functions like fopen() file_get_contents() etc.
You can also open connection on http port and check if answer is 200. If so then file exists.
If u want use fopen and file_get_contents you should check if allow_url_fopen is set to TRUE.
On file_exists() page in manual there is code:
$file = 'http://www.domain.com/somefile.jpg';
$file_headers = @get_headers($file);
if($file_headers[0] == 'HTTP/1.1 404 Not Found') {
$exists = false;
}
else {
$exists = true;
}
You can use it too.