PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
require_once 'File/Passwd/Authdigest.php';
mixed File_Passwd_Authdigest::staticAuth (string $file, string $user, string $pass, string $realm)
mixed File_Passwd_Authdigest::staticAuth
Static user authentication.
path to passwd file
user to authenticate
plaintext password
the realm the user should be in
Returns TRUE if authenticated, FALSE if not or PEAR_Error on failure.
Table 37-1. Possible PEAR_Error values
This function should be called statically.