ZipArchive::open()
ZipArchive::open - Open a ZIP file archive
Syntax
mixed ZipArchive::open (
string $filename,
int $flags)
Arguments
- filename - The file name of the ZIP archive to open.
- flags - The mode to use to open the archive. ZIPARCHIVE::OVERWRITE ZIPARCHIVE::CREATE ZIPARCHIVE::EXCL ZIPARCHIVE::CHECKCONS
Description
Opens a new zip archive for reading, writing or modifying.
Version
PHP 5.2.0, PECL zip >= 1.1.0
Return value
Error codes Returns TRUE on success or the error code. ZIPARCHIVE::ER_EXISTS ZIPARCHIVE::ER_INCONS ZIPARCHIVE::ER_INVAL ZIPARCHIVE::ER_MEMORY ZIPARCHIVE::ER_NOENT ZIPARCHIVE::ER_NOZIP ZIPARCHIVE::ER_OPEN ZIPARCHIVE::ER_READ ZIPARCHIVE::ER_SEEK