|
ZipArchive::extractToExtract the archive contents Description
public bool ZipArchive::extractTo(string
$pathto , arraystringnull $files = null )Extract the complete archive or the given files to the specified destination. Warning
The default permissions for extracted files and directories give the widest possible access. This can be restricted by setting the current umask, which can be changed using umask. For security reasons, the original permissions are not restored. For an example of how to restore them, see the code sample on the ZipArchive::getExternalAttributesIndex page. Parameters
Return Values
Returns ExamplesExample #1 Extract all entries
Example #2 Extract two entries
Notes
|