Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 175189 программистов и 1834 робота. Сейчас ищут 567 программистов ...
ZipArchive::setPassword - Set the password for the active archive
Вернуться к: ZipArchive
ZipArchive::setPassword
(PHP 5 >= 5.6.0, PHP 7, PECL zip >= 1.12.4)
ZipArchive::setPassword — Set 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 в случае возникновения ошибки.
Примечания
Замечание:
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.
Вернуться к: ZipArchive