I've been trying to use PCLzip to extract uploaded archives with the
following code:
$archive = new PclZip('temp/temp.zip');
if ($archive->extract(PCLZIP _OPT_PATH, 'temp/') == 0) {
die("Error : ".$archive->errorInfo(true ));
}
It doesn't report an error, but the files don't show up. Attributes
are 777 on the temp dir. If I list the contents of the zip, they
show up properly.
Anyone know what's wrong here?
following code:
$archive = new PclZip('temp/temp.zip');
if ($archive->extract(PCLZIP _OPT_PATH, 'temp/') == 0) {
die("Error : ".$archive->errorInfo(true ));
}
It doesn't report an error, but the files don't show up. Attributes
are 777 on the temp dir. If I list the contents of the zip, they
show up properly.
Anyone know what's wrong here?
Comment