ZipArchive::getCommentName

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.4.0) Returns the comment of an entry using the entry name string ZipArchive::getCommentName ( string $name [, int $flags ] ) Returns the comment of an entry using the entry name. Parameters: name Name of the entry flags If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged commen

ZipArchive::getExternalAttributesIndex

(PHP 5 >= 5.6.0, PHP 7, PECL zip >= 1.12.4) Retrieve the external attributes of an entry defined by its index bool ZipArchive::GetExternalAttributesIndex ( int $index, int &$opsys, int &$attr [, int $flags ] ) Retrieve the external attributes of an entry defined by its index. Parameters: index Index of the entry. opsys On

ZipArchive::extractTo

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.1.0) Extract the archive contents bool ZipArchive::extractTo ( string $destination [, mixed $entries ] ) Extract the complete archive or the given files to the specified destination. Parameters: destination Location where to extract the files. entries The entries to extract. It accepts either

ZipArchive::getExternalAttributesName

(PHP 5 >= 5.6.0, PHP 7, PECL zip >= 1.12.4) Retrieve the external attributes of an entry defined by its name bool ZipArchive::getExternalAttributesName ( string $name, int &$opsys, int &$attr [, int $flags ] ) Retrieve the external attributes of an entry defined by its name. Parameters: name Name of the entry. opsys On suc

ZipArchive::getFromIndex

(No version information available, might only be in Git) Returns the entry contents using its index string ZipArchive::getFromIndex ( int $index [, int $length = 0 [, int $flags ]] ) Returns the entry contents using its index. Parameters: index Index of the entry length The length to be read from the entry. If 0, then the entire entry

ZipArchive::addPattern

(PHP 5 >= 5.3.0, PHP 7, PECL zip >= 1.9.0) Add files from a directory by PCRE pattern bool ZipArchive::addPattern ( string $pattern [, string $path = "." [, array $options = array() ]] ) Add files from a directory which match the regular expression pattern. The operation is not recursive. The pattern will be matched against the file name only. Parameters: pattern

ZipArchive::close

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.1.0) Close the active archive (opened or newly created) bool ZipArchive::close ( void ) Close opened or created archive and save changes. This method is automatically called at the end of the script. Returns: Returns TRUE on success or FALSE on failure.

ZipArchive::deleteIndex

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.5.0) delete an entry in the archive using its index bool ZipArchive::deleteIndex ( int $index ) Delete an entry in the archive using its index. Parameters: index Index of the entry to delete. Returns: Returns TRUE on success or FALSE on failure. Examples

ZipArchive::deleteName

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.5.0) delete an entry in the archive using its name bool ZipArchive::deleteName ( string $name ) Delete an entry in the archive using its name. Parameters: name Name of the entry to delete. Returns: Returns TRUE on success or FALSE on failure. Examples:

ZipArchive::addFromString

(PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.1.0) Add a file to a ZIP archive using its contents bool ZipArchive::addFromString ( string $localname, string $contents ) Add a file to a ZIP archive using its contents. Parameters: localname The name of the entry to create. contents The contents to use to create the entry. It is used in a bi