<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.memcached.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'memcached.setsaslauthdata.php',
    1 => 'Memcached::setSaslAuthData',
    2 => 'Set the credentials to use for authentication',
  ),
  'up' => 
  array (
    0 => 'class.memcached.php',
    1 => 'Memcached',
  ),
  'prev' => 
  array (
    0 => 'memcached.setoptions.php',
    1 => 'Memcached::setOptions',
  ),
  'next' => 
  array (
    0 => 'memcached.touch.php',
    1 => 'Memcached::touch',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/memcached/memcached/setsaslauthdata.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="memcached.setsaslauthdata" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Memcached::setSaslAuthData</h1>
  <p class="verinfo">(PECL memcached &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">Memcached::setSaslAuthData</span> &mdash; <span class="dc-title">Set the credentials to use for authentication</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-memcached.setsaslauthdata-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Memcached::setSaslAuthData</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$username</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$password</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>Memcached::setSaslAuthData()</strong></span> sets the username and
   password that should be used for SASL authentication with the memcache
   servers.
  </p>
  <p class="para">
   <em>This method is only available when the memcached extension is
    built with SASL support.</em> Please refer to
   <a href="memcached.setup.php" class="link">Memcached setup</a> for how to do this.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-memcached.setsaslauthdata-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">username</code></dt>
     <dd>
      <p class="para">
       The username to use for authentication.
      </p>
     </dd>
    
    
     <dt><code class="parameter">password</code></dt>
     <dd>
      <p class="para">
       The password to use for authentication.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-memcached.setsaslauthdata-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Повертає <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> у разі успіху або <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> в разі помилки.
  </p>
 </div>


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