Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

enginbayar

macrumors newbie
Original poster
Jul 27, 2015
1
0
We are making a download manager application ...


Download header cause zip file to be corrupt


Please see the code below


header("Content-type: $mimeType");

header("Content-Transfer-Encoding: Binary");

header("Content-length: ".$size);

header("Content-disposition: attachment; filename=\"".$a['name']."\"");

readfile("$pathside");
 
If you still can't restore .zip file, then make use guide below or http://www.zip.openfiletool.com/ ZIP Open File Tool


Given step by step method to repair ZIP files using inbuilt utility available in a WinRAR application:

• Start WinRAR application.

• Go to file menu and click open.

• Through the find archive window, select the corrupted ZIP file available in your local machine.

• Click to open.

• Initialize repair by pressing ALT + R. A message saying, Repairingfile_name.zip will appear.

• Once the repair is done, it will ask you to save the repaired ZIP file. Browse a specific location for saving the selected file.

• Enable Treat the corrupt archive as ZIP box and click OK and click close.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.