PDA

View Full Version : Adding Files to a Zip Folder


pyro.699
03-21-2006, 10:30 PM
Hello,

Ok, i know tiny bit about zlib, not enough to make a script run off of it, anyways, im making a download script, and i would like to know how to add files to a zip archive, so it would compress the file, making it smaller than the current size. Also, the files (to be download) would not be changed, it could be something like a tempary file.

So, the steps are:

1) Create a tempary zip arcchive, with the same name as the file being downloaded (minius the .*)
2) Use a <a href="$filename"></a> to download the file
3) Delete the tempary Zip Archive

Any help is apreacheated, thankyou
~Cody Woolaver