PEAR Manual
Prev |  | Next

# File_HtAccess::load()

File_HtAccess::load() -- load the contents of existing .htaccess file

## Synopsis

``mixed File_HtAccess::load` ()`

## Description

Load the contents of .htaccess 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_HtAccess::load()
    <?php
    require_once('File/HtAccess.php');

    $fh     = new File_HtAccess('.htaccess');
    $status = $fh->load();

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

    ?>

Prev | Home | Next
File_HtAccess::file_htaccess() | Up | File_HtAccess::save()