File_Passwd::addUser()

File_Passwd::addUser() -- add user

Synopsis

require_once 'File/Passwd.php';

boolean File_Passwd::addUser ([string $user string $pass string $cvsuser = ""])

Description

Adds a new user entry into a file.

Parameter

Return value

boolean - Returns TRUE on success, PEAR_Error on failure.

Throws

Table 24-1. Possible PEAR_Error values

Error codeError messageReasonSolution
2 " Couldn't add user user, because the user already exists! " The user entry could not written to the temporary file, the user entry already exists. Check typing of the $user or you maybe looking for File_Passwd::modUser()

Note

This function can not be called statically