array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.radius-config.php', 1 => 'radius_config', 2 => 'Causes the library to read the given configuration file', ), 'up' => array ( 0 => 'ref.radius.php', 1 => 'Radius 函数', ), 'prev' => array ( 0 => 'function.radius-close.php', 1 => 'radius_close', ), 'next' => array ( 0 => 'function.radius-create-request.php', 1 => 'radius_create_request', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/radius/functions/radius-config.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

radius_config

(PECL radius >= 1.1.0)

radius_configCauses the library to read the given configuration file

说明

radius_config(resource $radius_handle, string $file): bool

Before issuing any Radius requests, the library must be made aware of the servers it can contact. The easiest way to configure the library is to call radius_config(). radius_config() causes the library to read a configuration file whose format is described in » radius.conf.

参数

radius_handle

file

The pathname of the configuration file is passed as the file argument to radius_config(). The library can also be configured programmatically by calls to radius_add_server().

返回值

成功时返回 true, 或者在失败时返回 false

参见