File_Passwd_Authbasic::addUser() – Add an user


mixed File_Passwd_Authbasic::addUser ( string $user , string $pass )


The username must start with an alphabetical character and must NOT contain any other characters than alphanumerics, the underline and dash.


string $user


string $pass

plaintext password

Return value

Returns TRUE on success, PEAR_Error on failure.

Possible PEAR_Error values
Error Code Summary
FILE_PASSWD_E_EXISTS_ALREADY the user to add already exists
FILE_PASSWD_E_INVALID_CHARS the username to add contains illegal characters


This function can not be called statically.

Save changes (Previous) Change password (Next)
Last updated: Fri, 20 Jan 2017 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.