previousFile_Passwd_Common::_auth (Previous) (Next) File_Passwd_Common::_closenext

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_Common::_open

File_Passwd_Common::_open() – Open a file

Synopsis

mixed &File_Passwd_Common::_open ( string $mode , mixed $file = null )

Description

Opens a file, locks it exclusively and returns the filehandle.

(package developer related)

Parameter

string $mode

the mode to open the file with

string $file

path to passwd file

Return value

Returns resource file handle or PEAR_Error on failure.

Possible PEAR_Error values
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

Note

This function can not be called statically.

previousFile_Passwd_Common::_auth (Previous) (Next) File_Passwd_Common::_closenext

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.