PHP zip_open() Function

Description

The zip_open() function opens a zip archive for reading.

Syntax

PHP zip_open() Function has the following syntax.

zip_open(filename)

Parameter

ParameterIs RequiredDescription
filenameRequired.Filename and path of the zip file to open

Return

This function returns a open zip file resource on success, or FALSE on failure.

Example

Open a zip archive for reading


<?php//  ww  w .j av  a 2s .  c om
   $zip = zip_open("test.zip");
   zip_read($zip);
   zip_close($zip);
?>




















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions