When downloading files or documents through my application, download successfully, more when opening are corrupted.
// DOWNLOAD OF THE FILE
$arquivo = 'C:/teste/arquivo.zip';
header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=" . basename($arquivo));
header("Pragma: no-cache");
header("Expires: 0");
header("Content-Length: " . filesize($arquivo));
readfile($arquivo);