Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17249 программистов и 1834 робота. Сейчас ищут 1675 программистов ...
File_HtAccess::addRequire()
Вернуться к: File_HtAccess
File_HtAccess::addRequire()
File_HtAccess::addRequire() – add a value into require property
Synopsis
void File_HtAccess::addRequire ( string $require )
Adds a value (user) into 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::addRequire()
<?php
require_once('File/HtAccess.php');
/* add user tuupola to list of users to be granted access */
$fh = new File_HtAccess('.htaccess');
$fh->load();
$fh->addRequire('tuupola');
$fh->save();
?>
Вернуться к: File_HtAccess