File_Passwd_Common::_open()

File_Passwd_Common::_open() -- Open a file

Referentiesamenvatting

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

Beschrijving

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

(Bedoeld voor pakket ontwikkelaars.)

Parameter

string $mode

the mode to open the file with

string $file

path to passwd file

Return waarde

Returns resource file handle or PEAR_Error on failure.

Tabel 38-1. Mogelijke PEAR_Error waarden

Error CodeSummary
FILE_PASSWD_E_DIR_NOT_CREATEDthe directory in which the passwd file should reside couldn't be created
FILE_PASSWD_E_FILE_NOT_OPENEDpasswd file couldn't be opened in the desired mode
FILE_PASSWD_E_FILE_NOT_LOCKEDpasswd file couldn't be locked

Note

Deze functie kan niet statisch worden aangeroepen.