note 92068 deleted from function.ziparchive-extractto by thiago
| From: | thiago@php.net | Date: | Tue, 07 Jul 2009 18:33:54 +0000 |
| Subject: | note 92068 deleted from function.ziparchive-extractto by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158030@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
I'm trying to unzip a file, but the routine I'm using unzip other files unless the one
that I really want to unzip. Here is the routine I'm using:
<?php
$zip = new ZipArchive();
if ($zip->open($nome_file) === TRUE) {
$zip->extractTo("./upload");
$zip->close();
echo "ok";
} else {
echo "failed";
}
?>
Does anybody know why this doesn't work? Why some files doesn't unzip.