0) { ob_end_clean(); } header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename=' . basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: no-store, must-revalidate'); header('Pragma: no-cache'); header('Content-Length: ' . filesize($file)); readfile($file); exit;