Re: Zip Way of life.
| From: | Marek Kilimajer | Date: | Wed, 19 Mar 2003 17:55:54 +0000 |
| Subject: | Re: Zip Way of life. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140318@lists.php.net to get a copy of this message | ||
readgzfile is for *.gz files.
Either use zip file functions (rarely supported) or PclZip (http://www.phpconcept.net/pclzip/index.en.php)
Vincent M. wrote:
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.