The zip_open() function opens a zip file for reading.
If successful, the function returns the zip file resource. If it fails, returns FALSE.
zip_open(filename)
parameter | describe |
---|---|
filename | Required. Specifies the file name and path of the zip file to be opened. |
Tip: Open zip file resources can be used by the zip_read() and zip_close() functions.
<?php$zip = zip_open("test.zip");zip_read($zip);// some codezip_close($zip);?>