note 92068 added to function.ziparchive-extractto
| From: | Anonymous at osu1 dot php dot net | Date: | Tue, 07 Jul 2009 17:56:49 +0000 |
| Subject: | note 92068 added to function.ziparchive-extractto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158028@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 143.107.160.252
----
Manual Page -- http://www.php.net/manual/en/function.ziparchive-extractto.php
Edit -- https://master.php.net/note/edit/92068
Del: integrated -- https://master.php.net/note/delete/92068/integrated
Del: useless -- https://master.php.net/note/delete/92068/useless
Del: bad code -- https://master.php.net/note/delete/92068/bad+code
Del: spam -- https://master.php.net/note/delete/92068/spam
Del: non-english -- https://master.php.net/note/delete/92068/non-english
Del: in docs -- https://master.php.net/note/delete/92068/in+docs
Del: other reasons-- https://master.php.net/note/delete/92068
Reject -- https://master.php.net/note/reject/92068
Search -- https://master.php.net/manage/user-notes.php