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.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to