ZipArchive::setPassword

(PHP 5 >= 5.6.0, PHP 7, PECL zip >= 1.12.4)
Set the password for the active archive
public bool ZipArchive::setPassword ( string $password )

Sets the password for the active archive.

Parameters:
password

The password to be used for the archive.

Returns:

Returns TRUE on success or FALSE on failure.

Notes:

This function only sets the password to be used to decompress the archive; it does not turn a non-password-protected ZipArchive into a password-protected ZipArchive.

doc_php
2016-02-24 15:55:42
Comments
Leave a Comment

Please login to continue.