<?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 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.ftp-get-option.php',
    1 => 'ftp_get_option',
    2 => 'Recupera diversi comportamenti dello stream FTP durante l\'esecuzione',
  ),
  'up' => 
  array (
    0 => 'ref.ftp.php',
    1 => 'FTP Funzioni',
  ),
  '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' => 'it',
    '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">Recupera diversi comportamenti dello stream FTP durante l&#039;esecuzione</span></p>

   </div>
   <div class="refsect1 unknown-1003" id="refsect1-function.ftp-get-option-unknown-1003">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>ftp_get_option</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$ftp_stream</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"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

    <p class="para rdfs-comment">
     Restituisce il valore in caso di successo oppure <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> se l&#039;opzione
     <code class="parameter">option</code> data non e&#039; supportata. In quest&#039;ultimo caso,
     viene anche visualizzato un messaggio di avvertimento.
    </p>
    <p class="para">
     Questa funzione restituisce il valore dell&#039;opzione 
     <code class="parameter">option</code> richiesta dallo stream FTP <code class="parameter">ftp_stream
     </code> specificato. Attualmente sono riconosciute le seguenti opzioni:
     <table class="doctable table">
      <caption><strong>Opzioni di runtime FTP riconosciute</strong></caption>
      
       <tbody class="tbody">
        <tr>
         <td>FTP_TIMEOUT_SEC</td>
         <td>
          Restituisce il timeout corrente, usato in operazioni di rete.
         </td>
        </tr>

       </tbody>
      
     </table>

    </p>
    <div class="example" id="example-1">
     <p><strong>Example #1  Esempio di funzione <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">// Recupera il time out dello stream FTP richiesto<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">$conn_id</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 class="para">
     Vedere anche <span class="function"><a href="function.ftp-set-option.php" class="function">ftp_set_option()</a></span>.
    </p>
   </div>

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