File_HtAccess::file_htaccess()
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');
?>