<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ftp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'function.ftp-get-option.php',
    1 => 'ftp_get_option',
    2 => 'Obt&eacute;m v&aacute;rias op&ccedil;&otilde;es em tempo de execu&ccedil;&atilde;o da conex&atilde;o FTP atual',
  ),
  'up' => 
  array (
    0 => 'ref.ftp.php',
    1 => 'Fun&ccedil;&otilde;es da extens&atilde;o FTP',
  ),
  'prev' => 
  array (
    0 => 'function.ftp-get.php',
    1 => 'ftp_get',
  ),
  'next' => 
  array (
    0 => 'function.ftp-login.php',
    1 => 'ftp_login',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/ftp/functions/ftp-get-option.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ftp-get-option" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ftp_get_option</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ftp_get_option</span> &mdash; <span class="dc-title">Obtém várias opções em tempo de execução da conexão FTP atual</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.ftp-get-option-description">
  <h3 class="title">Descrição</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ftp_get_option</strong></span>(<span class="methodparam"><span class="type"><a href="class.ftp-connection.php" class="type FTP\Connection">FTP\Connection</a></span> <code class="parameter">$ftp</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$option</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span></div>

  <p class="para rdfs-comment">
   Esta função retorna o valor da opção solicitada no parâmetro
   <code class="parameter">option</code> em relação à conexão FTP especificada.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.ftp-get-option-parameters">
  <h3 class="title">Parâmetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">ftp</code></dt>
     <dd>
      <p class="para">Uma instância de <span class="classname"><a href="class.ftp-connection.php" class="classname">FTP\Connection</a></span>.</p>
     </dd>
    
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       Atualmente, as seguintes opções são suportadas:
       <table class="doctable table">
        <caption><strong>Opções em tempo de execução do FTP suportadas</strong></caption>
        
         <tbody class="tbody">
          <tr>
           <td><strong><code><a href="ftp.constants.php#constant.ftp-timeout-sec">FTP_TIMEOUT_SEC</a></code></strong></td>
           <td>
            Retorna o limite de tempo usado atualmente para as operações de rede.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="ftp.constants.php#constant.ftp-autoseek">FTP_AUTOSEEK</a></code></strong></td>
           <td>
            Retorna <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> se esta opção estiver ativa, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> caso contrário.
           </td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.ftp-get-option-returnvalues">
  <h3 class="title">Valor Retornado</h3>
  <p class="para">
   Retorna o valor em caso de sucesso ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> se a opção indicada
   em <code class="parameter">option</code> não for suportada. Neste caso, uma mensagem
   de alerta também é emitida.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.ftp-get-option-changelog">
  <h3 class="title">Registro de Alterações</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versão</th>
      <th>Descrição</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.1.0</td>
 <td>
  O parâmetro <code class="parameter">ftp</code> agora espera uma instância de <span class="classname"><a href="class.ftp-connection.php" class="classname">FTP\Connection</a></span>;
  anteriormente, um <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> era esperado.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.ftp-get-option-examples">
  <h3 class="title">Exemplos</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemplo #1 Exemplo de <span class="function"><strong>ftp_get_option()</strong></span></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: #FF8000">// Obtém o limite de tempo da conexão FTP informada<br /></span><span style="color: #0000BB">$timeout </span><span style="color: #007700">= </span><span style="color: #0000BB">ftp_get_option</span><span style="color: #007700">(</span><span style="color: #0000BB">$ftp</span><span style="color: #007700">, </span><span style="color: #0000BB">FTP_TIMEOUT_SEC</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.ftp-get-option-seealso">
  <h3 class="title">Veja Também</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ftp-set-option.php" class="function" rel="rdfs-seeAlso">ftp_set_option()</a> - Define op&ccedil;&otilde;es diversas em tempo de execu&ccedil;&atilde;o</span></li>
   </ul>
  </p>
 </div>

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