(PHP 5 >= 5.6.0, PHP 7, PECL zip >= 1.12.4)
ZipArchive::setPassword — Set the password for the active archive
$password
)Sets the password for the active archive.
password
The password to be used for the archive.
성공 시 TRUE
를, 실패 시 FALSE
를 반환합니다.
Note:
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.