update : 2015.11.03
php.shukuma.com

검색:
 
 
Set the password for the active archive

ZipArchive::setPassword

(PHP 5 >= 5.6.0, PECL zip >= 1.12.4)

ZipArchive::setPasswordSet the password for the active archive

설명

public bool ZipArchive::setPassword ( string $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.