
-----------------------------------
Amailer
Sun Aug 15, 2004 11:43 am

Zipping folders with php
-----------------------------------
Hey all,
Anyone know how I can zip a folder and it's sub folders and all the files in it using php?, and i want it to be the best compression w/e.

Anyone?

Thanks

-----------------------------------
wtd
Sun Aug 15, 2004 5:56 pm


-----------------------------------
If you're trying to reduce your bandwidth usage you may want to check out mod_deflate.

-----------------------------------
Amailer
Sun Aug 15, 2004 6:21 pm


-----------------------------------
No, i just want to zip a folder (and it's subfolders and files and etc) every day , so i don't have to manully do it all the time (like i current do), like you know how CVS is, the way they display the snapshots? exactally like that (i tried to get a CVS but all the good ones are for unix/linux and the one on windows that i got, im having hard time setting it up :P).

So i just need a script to zip a whole folder and everything in it, any clue how to do this?

-----------------------------------
Amailer
Tue Aug 17, 2004 1:39 pm


-----------------------------------
No one know?

-----------------------------------
JHanson90
Tue Aug 17, 2004 2:16 pm


-----------------------------------
I didn't investigate it any further, but read the comments on this page:
http://php.us.themoes.org/manual/en/ref.zip.php

The first one said something like "zip files can be easily created using my Ziplib..."  There's a few other comments that mention writing Zip files involving zLib.

-----------------------------------
Amailer
Thu Aug 19, 2004 10:43 am


-----------------------------------
K well, i got it to add the folders and subfolders, but i can't add the files! it's being a huge pain. anyclues...? (using the classes from those links you provided).
