RE: [PHP] Zip Way of life.
| From: | Daevid Vincent | Date: | Wed, 19 Mar 2003 20:45:08 +0000 |
| Subject: | RE: [PHP] Zip Way of life. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140337@lists.php.net to get a copy of this message | ||
You could use the exec() or shell_exec() and just do it via command line
method...
> -----Original Message-----
> From: Vincent M. [mailto:cult@free.fr]
> Sent: Wednesday, March 19, 2003 12:36 PM
> To: php-general@lists.php.net
> Subject: [PHP] Zip Way of life.
>
>
> Hello,
>
> I'd like to uncompress to the Hard disk a zip file send by
> the browser.
>
> At this time I do this:
>
> function uncompresszip($zipfile) {
> copy($zipfile,
> dirname($_SERVER['PATH_TRANSLATED'])."/zip/zipfile.zip") ;
> }
>
> But I do not understand how to uncompress the zip file, I
> tried for exemple:
> $retour =
> readgzfile(dirname($_SERVER['PATH_TRANSLATED'])."/zip/zipfile.zip");
>
> But as mentionned in the php doc it outputs the content of
> the zip file
> in the browser :-(
>
> How to uncompress a zip file in a directory ? I just want all
> the files
> which are in the zip file...
>
> Thanks,
> Vincent.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>