PHP zip_open()Functions
Complete PHP Zip File Reference Manual
Definition and Usage
The zip_open() function opens a zip archive for reading.
If successful, the function returns a zip file resource. If it fails, it returns FALSE.
Syntax
zip_open(filename)
| Parameters | Description |
|---|---|
| filename | Required. Specifies the filename and path of the zip file to open. |
Tips and Notes
Tip:The opened zip file resource can be used by the zip_read() and zip_close() functions.
Examples
<?php
$zip = zip_open("test.zip");
zip_read($zip);
// some code
zip_close($zip);
?>
$zip = zip_open("test.zip");
zip_read($zip);
// some code
zip_close($zip);
?>
Complete PHP Zip File Reference Manual Other Extensions