<?php
require_once 'File/SMBPasswd.php';
// add user mbretter
$fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
$fh->load();
$status = $fh->addMachine(
'mypc',
10004,
'My Turbo PC');
if (PEAR::isError($status)) {
// handle errors
} else {
// continue processing
$fh->save();
}
?> |