mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-17 21:16:57 +08:00
88 lines
3.1 KiB
HTML
88 lines
3.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||
<title>Causes the library to read the given configuration file</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.radius-config" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">radius_config</h1>
|
||
<p class="verinfo">(PECL radius >= 1.1.0)</p><p class="refpurpose"><span class="refname">radius_config</span> — <span class="dc-title">Causes the library to read the given configuration file</span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.radius-config-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>radius_config</strong></span>
|
||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$radius_handle</code></span>
|
||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$file</code></span>
|
||
) : <span class="type">bool</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
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 <span class="function"><strong>radius_config()</strong></span>. <span class="function"><strong>radius_config()</strong></span>
|
||
causes the library to read a configuration file whose format is described
|
||
in <a href="http://www.freebsd.org/cgi/man.cgi?query=radius.conf" class="link external">» radius.conf</a>.
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.radius-config-parameters">
|
||
<h3 class="title">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">radius_handle</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">file</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
The pathname of the configuration file is passed as the file argument
|
||
to <span class="function"><strong>radius_config()</strong></span>. The library can also be
|
||
configured programmatically by calls to
|
||
<span class="function"><a href="radius_add_server.html" class="function">radius_add_server()</a></span>.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.radius-config-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.radius-config-seealso">
|
||
<h3 class="title">参见</h3>
|
||
<p class="para">
|
||
<ul class="simplelist">
|
||
<li class="member"><span class="function"><a href="radius_add_server.html" class="function" rel="rdfs-seeAlso">radius_add_server()</a> - Adds a server</span></li>
|
||
</ul>
|
||
</p>
|
||
</div>
|
||
|
||
</div></div></div></body></html> |