Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 19818 программистов и 1626 роботов. Сейчас ищут 1558 программистов ...

File_HtAccess::setAuthDigestFile

Вернуться к: File_HtAccess

File_HtAccess::setAuthDigestFile

File_HtAccess::setAuthDigestFile – set the value of authdigestfile property

Synopsis

void File_HtAccess::setAuthDigestFile ( string $file )

Sets the value of authdigestfile property. AuthDigestFile is the password file which contains username:realm:password pairs for Digest authentication. You must give full path to the password file in order for it to work.

Parameter

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

Return value

void

Note

This function can not be called statically.

Example

Using File_HtAccess::setauthdigestfile()

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

/* set the password file to /etc/htdigest */
$fh = new File_HtAccess('.htaccess');
$fh->load();
$fh->setauthdigestfile('/etc/htdigest');
$fh->save();

?>


Вернуться к: File_HtAccess

© 2025 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware