File_HtAccess::file_htaccess()

File_HtAccess::file_htaccess() – constructor

Synopsis

object new File_HtAccess ( string $file='.htaccess' , array $params )

Description

Creates an instance of a File_HtAccess object.

Parameter

  • string $file - filename to use. Defaults to .htaccess

  • array $params - a array of parameters which can be:

    • $params['authname'] - authname

    • $params['authtype'] - authtype

    • $params['authuserfile'] - authuserfile

    • $params['authgroupfile'] - authgroupfile

    • $params['require'] - require

    • $params['additional'] - additional

Return value

object - instance of File_HtAccess

Example

How to create new instance of File_HtAccess

<?php
require_once('File/HtAccess.php');
$fh = new File_HtAccess('.htaccess');
?>
what are .htaccess files (Previous) load the contents of existing .htaccess file (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.