File_HtAccess::setAuthUserFile() -- set the value of authuserfile property
Описание
Sets the value of authuserfile property. AuthUserFile is the password
file which contains username:password pairs for Basic authentication.
You must give full path to the password file in order for it to work.
Возвращаемое значение
void
Заметка
Эта функция не должна вызываться статически.
Пример
Пример 39-1. Using File_HtAccess::setAuthUserFile() <?php
require_once('File/HtAccess.php');
/* set the password file to /etc/htpasswd */
$fh = new File_HtAccess('.htaccess');
$fh->load();
$fh->setAuthUserFile('/etc/htpasswd');
$fh->save();
/* set the password file to .htpasswd in current working directory */
$file = getcwd() . '/.htpasswd';
$fh = new File_HtAccess('.htaccess');
$fh->load();
$fh->setAuthUserFile($file);
$fh->save();
?> |
|
HIVE: All information for read only. Please respect copyright! |
|