Re: PHP and making a ZIP file
| From: | Ashley Sheridan | Date: | Fri, 27 Mar 2009 09:29:46 +0000 |
| Subject: | Re: PHP and making a ZIP file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290739@lists.php.net to get a copy of this message | ||
On Fri, 2009-03-27 at 16:11 +1100, Chris wrote:
> Ron Piggott wrote:
> > Does anyone know how to make a ZIP file using PHP? This is for an
> > application where the files the user selected will be put into a ZIP
> > file and then the ZIP file made available for download. Ron
>
> http://www.php.net/zip would be a good place to start.
>
> Or http://pear.php.net/package/File_Archive if your host
> can't/won't
> install the requirements.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
>
If you're hosting it yourself, and it's on a Linux platform, you could
shell out and archive it from there. That'll give you the advantage of
using any compression format the OS supports, and lets you do cool
things like spanned rar archives and such.
Ash
www.ashleysheridan.co.uk