Zipping folders with php
Author |
Message |
Amailer

|
Posted: Sun Aug 15, 2004 11:43 am Post subject: 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 |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
wtd
|
Posted: Sun Aug 15, 2004 5:56 pm Post subject: (No subject) |
|
|
If you're trying to reduce your bandwidth usage you may want to check out mod_deflate. |
|
|
|
|
 |
Amailer

|
Posted: Sun Aug 15, 2004 6:21 pm Post subject: (No subject) |
|
|
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 ).
So i just need a script to zip a whole folder and everything in it, any clue how to do this? |
|
|
|
|
 |
Amailer

|
Posted: Tue Aug 17, 2004 1:39 pm Post subject: (No subject) |
|
|
No one know? |
|
|
|
|
 |
JHanson90

|
Posted: Tue Aug 17, 2004 2:16 pm Post subject: (No subject) |
|
|
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

|
Posted: Thu Aug 19, 2004 10:43 am Post subject: (No subject) |
|
|
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). |
|
|
|
|
 |
|
|