previousFile_Passwd_Unix::getMode (Previous) (Next) File_Passwd_Unix::listModesnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_Passwd_Unix::setMode

File_Passwd_Unix::setMode() – Set encryption mode

Synopsis

mixed File_Passwd_Unix::setMode ( string $mode )

Description

Set encryption mode to use.

Supported encryption modes are 'des' and 'md5'.

You can use the constants FILE_PASSWD_MD5 and FILE_PASSWD_DES for this purpose.

Parameter

string $mode

encryption mode to use

Return value

Returns TRUE on success, PEAR_Error on failure.

Returns PEAR_Error FILE_PASSWD_E_INVALID_ENC_MODE, if supplied encryption mode is not supported.

Note

This function can not be called statically.

previousFile_Passwd_Unix::getMode (Previous) (Next) File_Passwd_Unix::listModesnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.