Checking file exists on external server using file_get_contents() method, does this method will work properly?
$url_file = "http://website.com/dir/filename.php";
$contents = file_get_contents($url_file);
if($contents){
echo "File Exists!";
} else {
echo "File Doesn't Exists!";
}