File_HtAccess::delRequire()

File_HtAccess::delRequire() – remove a value from require property

Synopsis

void File_HtAccess::delRequire ( string $require )

Description

Remove a value (user) from require property. Using this method you can control which users will be able to access the protected resources.

Parameter

  • string $require - value (user) to be added to require property.

Return value

void

Note

This function can not be called statically.

Example

Using File_HtAccess::delRequire()

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

/* remove user viemero from list of users to be granted access */
$fh = new File_HtAccess('.htaccess');
$fh->load();
$fh->delRequire('viemero');
$fh->save();

?>
add a value into require property (Previous) get the value(s) of require property (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.