Current Location: Home> Function Categories> zip_open

zip_open

Open the ZIP file.
Name:zip_open
Category:Uncategorized
Programming Language:php
One-line Description:Open the ZIP file.

Definition and usage

zip_open() function opens the ZIP file for reading.

If successful, return the zip file archive resource. If it fails, false is returned.

Tip: The newly opened zip file resource can be used by zip_read() and zip_close() functions afterwards.

Example

 <?php
$zip = zip_open ( "test.zip" ) ;

zip_read ( $zip ) ;

// Some code...

zip_close ( $zip ) ;
?>

grammar

 zip_open ( filename )
parameter describe
filename Required. Specifies the file name and path of the zip file to be opened.
Similar Functions
Popular Articles