The zip_open() function opens a zip archive for reading.
PHP zip_open() Function has the following syntax.
zip_open(filename)
Parameter | Is Required | Description |
---|---|---|
filename | Required. | Filename and path of the zip file to open |
This function returns a open zip file resource on success, or FALSE on failure.
Open a zip archive for reading
<?php
$zip = zip_open("test.zip");
zip_read($zip);
zip_close($zip);
?>