File_HtAccess::setAuthGroupFile()

File_HtAccess::setAuthGroupFile() – set the value of authgroupfile property

Synopsis

void File_HtAccess::setAuthGroupFile ( string $file )

Description

Sets the value of authgroupfile property. AuthGroupFile a file containing names of the groups and usernames belonging to the group. You must give full path to the group file in order for it to work.

Parameter

  • string $file - absolute pathname to the group file.

Return value

void

Note

This function can not be called statically.

Example

Using File_HtAccess::setauthgroupfile()

<?php
require_once('File/HtAccess.php');

/* set the group file to /etc/htgroup */
$fh = new File_HtAccess('.htaccess');
$fh->load();
$fh->setAuthGroupFile('/etc/htgroup');
$fh->save();

?>
set the value of authuserfile property (Previous) set the value of authtype property (Next)
Last updated: Tue, 19 Aug 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.