PEAR Manual
Prev |  | Next

# File_SMBPasswd::unlock()

File_SMBPasswd::unlock() -- unlock the smbpasswd file

## Synopsis

``mixed File_SMBPasswd::unlock` ()`

## Description

unlock the smbpasswd file.

## Return value

`mixed` - Returns `TRUE` on success, PEAR_Error on failure.

## Note

This function can not be called statically.

## Example

Example 38-1. Using File_SMBPasswd::unlock()
    <?php
    require_once('File/SMBPasswd.php');

    $fh = new File_SMBPasswd('/usr/local/private/smbpasswd');
    $status = $fh->unlock();

    if (PEAR::isError($status)) {
      // handle errors
    } else {
      // continue processing
    }

    ?>

Prev | Home | Next
File_SMBPasswd::lock() | Up | File_SMBPasswd::save()