chetanmadaan Posted January 4, 2016 Share Posted January 4, 2016 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, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.