PHP zip_open() Function
Example
Open, read, and close a ZIP file archive:
<?php
$zip = zip_open("test.zip");
zip_read($zip);
// some code
zip_close($zip);
?>
Definition and Usage
The zip_open() function opens a ZIP file archive.
Syntax
zip_open(zip)
Parameter Values
Parameter | Description |
---|---|
zip | Required. Specifies the ZIP file to open |
Technical Details
Return Value: | A resource handle on success. FALSE on failure |
---|---|
PHP Version: | 4.1.0+ |
❮ PHP Zip Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.