File_SMBPasswd::lock() -- lock the smbpasswd file
Description
lock the smbpasswd file.
Return value
mixed - Returns TRUE on success,
PEAR_Error on failure.
Note
This function can not be called
statically.
Example
Example 30-1. Using File_SMBPasswd::lock() <?php
require_once('File/SMBPasswd.php');
$fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
$status = $fh->lock();
if (PEAR::isError($status)) {
// handle errors
} else {
// continue processing
}
?> |
|