File_Passwd::delUser()

File_Passwd::delUser() -- deletes an user

Synopsis

require_once 'File/Passwd.php';

boolean File_Passwd::delUser (string $user)

Description

Deletes an user entry in the file.

Parameter

Return value

boolean - Returns TRUE on success, PEAR_Error on failure.

Throws

Table 24-1. Possible PEAR_Error values

Error codeError messageReasonSolution
3 " Couldn't modify user user, because the user doesn't exists! " The user entry could not written to the temporary file, he does not exists in this file. Check typing of the $user or you maybe looking for File_Passwd::addUser()

Note

This function can not be called statically