previousFile_SMBPasswd::modUser() (Previous) (Next) File_SMBPasswd::delUser()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_SMBPasswd::delAccount()

File_SMBPasswd::delAccount() – deletes an existing account.

Synopsis

mixed File_SMBPasswd::delAccount ( string $name )

Description

This method deletes an existing account.

Parameter

  • string $name - account name to be deleted (username or machinename)

Return value

mixed - Returns TRUE on success, PEAR_Error on failure.

Example

Using File_SMBPasswd::delAccount()

<?php
require_once 'File/SMBPasswd.php';

// delete user mbretter
$fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
$fh->load();
$status $fh->delAccount('mbretter');
if (
PEAR::isError($status)) {
    
// handle errors
} else {
    
$fh->save();
}

?>
previousFile_SMBPasswd::modUser() (Previous) (Next) File_SMBPasswd::delUser()next

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.