Anyone know about any issues with zip.lib ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Skittlewidth
Forum Contributor
Posts: 389
Joined: Wed Nov 06, 2002 9:18 am
Location: Kent, UK

Anyone know about any issues with zip.lib ?

Post by Skittlewidth »

I've been asked to troubleshoot a set of scripts that downloads an entire database driven site and makes it into a static page site then packs it into a zip for downloading. The process of converting the files is working fine, but its just the zip creation that seems to be failing.

I sorted a problem where the scripts were timing out and now I can see the zip file has received all the contents because the download is a healthy size as opposed to 10k before, but the zip file is still always "invalid or corrupt" once the download is complete.

I'm looking through the zip.lib class and have even updated it to a more current version, but I'm not sure what specifically can cause a zip file to be corrupt so don't know what to look for beyond that.

Can anyone give me some pointers, or has anyone had a similar problem creating zip files?
Post Reply