Using ZIP to archive folders

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
fluidbyte
Forum Commoner
Posts: 30
Joined: Tue May 27, 2008 2:07 pm

Using ZIP to archive folders

Post by fluidbyte »

I'm building a custom CMS solution and the client would like an easy way to download all the assets (/assets) and db backups (/admin/db_backups) in one zip file. I've been struggling to find any sort of solution for this, anyone know of a (relatively) simple way to throw both of these directories into a zip file and allow the user to download them?
Last edited by Weirdan on Fri Nov 13, 2009 4:37 am, edited 1 time in total.
Reason: fixed title (gzip -> zip)
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Using GZIP to archive folders

Post by Weirdan »

So should it be zip or gzip?
fluidbyte
Forum Commoner
Posts: 30
Joined: Tue May 27, 2008 2:07 pm

Re: Using GZIP to archive folders

Post by fluidbyte »

Zip file ultimately, it's for a less than tech-savvy client, so something they're familiar with would be best.
Post Reply