Back

Code test


$headers = @get_headers($file_url);
if ($headers && strpos($headers[0], '200')) {
// File exists
} else {
// File does not exist
}