void File_HtAccess::setAuthDigestFile (
string $file
)
authdigestfile プロパティの値を設定します。AuthDigestFile はユーザー名:レルム:パスワードのペアを含む ダイジェスト認証のためのパスワードファイルです。 動作させるためにはパスワードファイルへのフルパスを与える必要があります。
string $file
-
パスワードファイルへの絶対パス名を指定します。
void
This function can not be called statically.
File_HtAccess::setauthdigestfile() の使用
<?php
require_once('File/HtAccess.php');
/* パスワードファイルに /etc/htdigest を指定する */
$fh = new File_HtAccess('.htaccess');
$fh->load();
$fh->setauthdigestfile('/etc/htdigest');
$fh->save();
?>