<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.ftp-set-option.php',
    1 => 'ftp_set_option',
    2 => 'Setzt diverse FTP-Laufzeitoptionen',
  ),
  'up' => 
  array (
    0 => 'ref.ftp.php',
    1 => 'FTP-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.ftp-rmdir.php',
    1 => 'ftp_rmdir',
  ),
  'next' => 
  array (
    0 => 'function.ftp-site.php',
    1 => 'ftp_site',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/ftp/functions/ftp-set-option.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ftp-set-option" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ftp_set_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_set_option</span> &mdash; <span class="dc-title">Setzt diverse FTP-Laufzeitoptionen</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ftp-set-option-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ftp_set_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="methodparam"><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> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Diese Funktion kontrolliert diverse FTP-Laufzeitoptionen für die
   angegebene FTP-Verbindung.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ftp-set-option-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">ftp</code></dt>
     <dd>
      <p class="para">Eine <span class="classname"><a href="class.ftp-connection.php" class="classname">FTP\Connection</a></span>-Instanz.</p>
     </dd>
    
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       Zur Zeit werden folgende Optionen unterstützt:
       <table class="doctable table">
        <caption><strong>Unterstützte FTP-Laufzeitoptionen</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>
            Ändert den Timeout in Sekunden für alle folgenden
            Netzwerkoperationen. <code class="parameter">value</code> muss eine ganze
            Zahl sein, die größer als 0 ist. Der Standardwert des Timeouts ist
            90 Sekunden.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="ftp.constants.php#constant.ftp-autoseek">FTP_AUTOSEEK</a></code></strong></td>
           <td>
            Falls aktiviert, werden GET- oder PUT-Anfragen mit einem
            <code class="parameter">resumepos</code>- oder
            <code class="parameter">startpos</code>-Parameter innerhalb der
            Datei zuerst die angegebene Position suchen. Dies ist
            standardmäßig aktiviert.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="ftp.constants.php#constant.ftp-usepasvaddress">FTP_USEPASVADDRESS</a></code></strong></td>
           <td>
            Falls deaktiviert, ignoriert PHP die IP-Adresse, die vom FTP-Server
            als Antwort auf das PASV-Kommando zurückgegeben wurde, und
            verwendet stattdessen die IP-Adresse, die im ftp_connect()-Aufruf
            bereitgestellt wurde.
            <code class="parameter">value</code> muss ein Boolean sein.
           </td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
    
     <dt><code class="parameter">value</code></dt>
     <dd>
      <p class="para">
       Dieser Parameter hängt davon ab, welche
       <code class="parameter">option</code> für die Änderung ausgewählt wurde.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ftp-set-option-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück, wenn die Option gesetzt werden konnte, sonst
   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>. Eine Warnung wird ausgegeben, falls die
   <code class="parameter">option</code> nicht unterstützt wird oder falls der
   angegebene <code class="parameter">value</code> nicht mit dem erwarteten
   Wert für die angegebene <code class="parameter">option</code> übereinstimmt.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.ftp-set-option-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.1.0</td>
 <td>
  Der Parameter <code class="parameter">ftp</code> erwartet nun eine
  <span class="classname"><a href="class.ftp-connection.php" class="classname">FTP\Connection</a></span>-Instanz; vorher wurde eine <a href="language.types.resource.php" class="link">Ressource</a>
  erwartet.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.ftp-set-option-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>ftp_set_option()</strong></span>-Beispiel</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">// Setze den Netzwerk-Timeout auf 10 Sekunden<br /></span><span style="color: #0000BB">ftp_set_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">, </span><span style="color: #0000BB">10</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-set-option-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ftp-get-option.php" class="function" rel="rdfs-seeAlso">ftp_get_option()</a> - Ruft diverse Laufzeitoptionen der angegebenen FTP-Verbindung ab</span></li>
   </ul>
  </p>
 </div>


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