I am using a simple PHP script to download downloads and then offer a zip file. As soon as the zip is parsed through the PHP... unique hash of zip changes and it can't be extract using the unzip function PHP. although, it works fine with windows to extract it... but the hash changes. I am using the following headers... Anything i can do to fix this.
header("Content-type: application/zip");
header("Content-Disposition: attachment; filename=\"".$file."\"");
header("Content-Length: ".filesize($filepath.$file));
ob_end_flush();
$filepath and $file containts the physical path of the file. Any tips? Thank you,