previousFile_Passwd_Common::save (Previous) (Next) File_Passwd_Common::_opennext

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::_auth

File_Passwd_Common::_auth() – Base method for File_Passwd::staticAuth()

Synopsis

mixed File_Passwd_Common::_auth ( string $file , string $id )

Description

Base method for File_Passwd_*::staticAuth()

(package developer related)

Parameter

string $file

path to passwd file

string $id

user_id to search for

Return value

Returns string line of passwd file containing $id, FALSE if $id wasn't found, or PEAR_Error on failure.

Possible PEAR_Error values
Error Code Summary
FILE_PASSWD_E_EXISTS_NOT passwd file doesn't exist
FILE_PASSWD_E_FILE_NOT_OPENED passwd file couldn't be opened in read mode
FILE_PASSWD_E_FILE_NOT_LOCKED passwd file couldn't be locked shared
FILE_PASSWD_E_FILE_NOT_UNLOCKED passwd file couldn't be unlocked (only if auth fails)
FILE_PASSWD_E_FILE_NOT_CLOSED passwd file couldn't be closed (only if auth fails)

Note

This function can not be called statically.

previousFile_Passwd_Common::save (Previous) (Next) File_Passwd_Common::_opennext

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.