void File_HtAccess::addRequire (string $require)
void File_HtAccess::addRequire
Adds a value (user) into require property. Using this method you can control which users will be able to access the protected resources.
string $require - value (user) to be added to require property.
void
This function can not be called statically.
Example 38-1. 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(); ?>