<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.radius.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.radius-put-string.php',
    1 => 'radius_put_string',
    2 => 'Attaches a string attribute',
  ),
  'up' => 
  array (
    0 => 'ref.radius.php',
    1 => 'Radius Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.radius-put-int.php',
    1 => 'radius_put_int',
  ),
  'next' => 
  array (
    0 => 'function.radius-put-vendor-addr.php',
    1 => 'radius_put_vendor_addr',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/radius/functions/radius-put-string.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.radius-put-string" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">radius_put_string</h1>
  <p class="verinfo">(PECL radius &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">radius_put_string</span> &mdash; <span class="dc-title">Attaches a string attribute</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.radius-put-string-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>radius_put_string</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$radius_handle</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$value</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$options</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$tag</code><span class="initializer"> = ?</span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Attaches a string attribute to the current RADIUS request. In general,
   <span class="function"><a href="function.radius-put-attr.php" class="function">radius_put_attr()</a></span> is a more useful function for
   attaching string attributes, as it is binary safe.
  </p>
  <blockquote class="note"><p><strong class="note">Nota</strong>: <p class="para">A request must be created via <span class="function"><a href="function.radius-create-request.php" class="function">radius_create_request()</a></span> before this function can be called.</p></p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.radius-put-string-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   <dt><code class="parameter">radius_handle</code></dt><dd><p class="para">The RADIUS resource.</p></dd>
   <dt><code class="parameter">type</code></dt><dd><p class="para">The attribute type.</p></dd>
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <span class="simpara">
      The attribute value. This value is expected by the underlying library
      to be null terminated, therefore this parameter is not binary safe.
     </span>
    </dd>
   
   <dt><code class="parameter">options</code></dt><dd><p class="para">A bitmask of the attribute options. The available options include <a href="radius.constants.options.php#constant.radius-option-tagged" class="link"><strong><code><a href="radius.constants.options.php#constant.radius-option-tagged">RADIUS_OPTION_TAGGED</a></code></strong></a> and <a href="radius.constants.options.php#constant.radius-option-salt" class="link"><strong><code><a href="radius.constants.options.php#constant.radius-option-salt">RADIUS_OPTION_SALT</a></code></strong></a>.</p></dd>
   <dt><code class="parameter">tag</code></dt><dd><p class="para">The attribute tag. This parameter is ignored unless the <a href="radius.constants.options.php#constant.radius-option-tagged" class="link"><strong><code><a href="radius.constants.options.php#constant.radius-option-tagged">RADIUS_OPTION_TAGGED</a></code></strong></a> option is set.</p></dd>
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.radius-put-string-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   Restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> in caso di successo, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.radius-put-string-changelog">
  <h3 class="title">Log delle modifiche</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versione</th>
      <th>Descrizione</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>PECL radius 1.3.0</td>
      <td>
       The <code class="parameter">options</code> and <code class="parameter">tag</code>
       parameters were added.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.radius-put-string-examples">
  <h3 class="title">Esempi</h3>
  <div class="example" id="example-1">
   <p><strong>Example #1 <span class="function"><strong>radius_put_string()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">if (!</span><span style="color: #0000BB">radius_put_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">, </span><span style="color: #0000BB">RADIUS_USER_NAME</span><span style="color: #007700">, </span><span style="color: #DD0000">'billy'</span><span style="color: #007700">)) {<br />    echo </span><span style="color: #DD0000">'RadiusError:' </span><span style="color: #007700">. </span><span style="color: #0000BB">radius_strerror</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">). </span><span style="color: #DD0000">"\n&lt;br /&gt;"</span><span style="color: #007700">;<br />    exit;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.radius-put-string-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.radius-put-int.php" class="function" rel="rdfs-seeAlso">radius_put_int()</a> - Attaches an integer attribute</span></li>
   <li><span class="function"><a href="function.radius-put-vendor-int.php" class="function" rel="rdfs-seeAlso">radius_put_vendor_int()</a> - Attaches a vendor specific integer attribute</span></li>
   <li><span class="function"><a href="function.radius-put-vendor-string.php" class="function" rel="rdfs-seeAlso">radius_put_vendor_string()</a> - Attaches a vendor specific string attribute</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>