previousFile_HtAccess::setAuthGroupFile() (Previous) (Next) File_HtAccess::setAuthDigestFilenext

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_HtAccess::setAuthType

File_HtAccess::setAuthType – authtype プロパティの値を設定する

Synopsis

void File_HtAccess::setAuthType ( string $type='Basic' )

Description

authtype プロパティの値を設定します。通常 Basic 認証を使用するでしょう。 ほとんどのブラウザはまだ Digest 認証をサポートしていませんので、 どのブラウザがリソースへアクセスするかを制御できる場合のみ Digest を使用するべきです。

Parameter

  • string $type - 使用する認証タイプを指定します。 Basic もしくは Digest で、デフォルトは Basic です。

Return value

void

Note

This function can not be called statically.

Example

File_HtAccess::setAuthType() の使用

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

/* Digest 認証を使用する */
$fh = new File_HtAccess('.htaccess');
$fh->load();
$fh->setAuthType('Digest');
$fh->save();

?>
previousFile_HtAccess::setAuthGroupFile() (Previous) (Next) File_HtAccess::setAuthDigestFilenext

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.