Latest web development tutorials

PHP zip_open () function

PHP Zip File Reference Complete PHP Zip File Reference

Definition and Usage

zip_open () function to open the zip file for reading.

If successful, the function returns the zip file resources. If it fails, it returns FALSE.

grammar

zip_open(filename)

参数 描述
filename 必需。规定要打开的 zip 文件的文件名和路径。


Tips and Notes

Tip: zip file resources can be opened zip_read () and zip_close () function is used.


Examples

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

// some code

zip_close($zip);
?>


PHP Zip File Reference Complete PHP Zip File Reference