File_Passwd_Common::_open() -- Open a file Описание
Opens a file, locks it exclusively and returns the filehandle.
(для разработчиков) Параметр
- string
$mode
the mode to open the file with
- string
$file
path to passwd file
Возвращаемое значение
Returns resource file handle or PEAR_Error on failure.
Таблица 26-1. Возможные значения PEAR_Error Error Code | Summary |
---|
FILE_PASSWD_E_DIR_NOT_CREATED | the directory in which the passwd file should reside couldn't be created | FILE_PASSWD_E_FILE_NOT_OPENED | passwd file couldn't be opened in the desired mode | FILE_PASSWD_E_FILE_NOT_LOCKED | passwd file couldn't be locked |
ЗаметкаЭта функция не должна вызываться статически.
|