if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content -Type: application/octet-stream'); header('Content-Disposition: attachment; ...
php.net