<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/wrappers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'wrappers.ftp.php',
    1 => 'ftp://',
    2 => 'Zugriff auf FTP(s)-URLs',
  ),
  'up' => 
  array (
    0 => 'wrappers.php',
    1 => 'Unterst&uuml;tzte Protokolle und Wrapper',
  ),
  'prev' => 
  array (
    0 => 'wrappers.http.php',
    1 => 'http://',
  ),
  'next' => 
  array (
    0 => 'wrappers.php.php',
    1 => 'php://',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'language/wrappers/ftp.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="wrappers.ftp" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ftp://</h1>
  <h1 class="refname">ftps://</h1>
  <p class="refpurpose"><span class="refname">ftp://</span> -- <span class="refname">ftps://</span> &mdash; <span class="dc-title">Zugriff auf FTP(s)-URLs</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-wrappers.ftp-description">
  <h3 class="title">Beschreibung</h3>
  <p class="para">
   Ermöglicht es, über FTP lesend auf bestehende Dateien zuzugreifen und neue
   Dateien zu erstellen. Wenn der Server den passiven FTP-Modus nicht
   unterstützt, schlägt die Verbindung fehl.
  </p>
  <p class="simpara">
   Dateien können entweder zum Lesen oder zum Schreiben geöffnet werden, aber
   nicht beides gleichzeitig. Wenn eine Datei auf dem FTP-Server bereits
   vorhanden ist und versucht wird, sie ohne die Kontextoption
   <code class="literal">overwrite</code> zum Schreiben zu öffnen, schlägt die
   Verbindung fehl. Wenn bereits vorhandene Dateien über ftp überschrieben
   werden sollen, muss die Option <code class="literal">overwrite</code> im Kontext
   angegeben und die Datei zum Schreiben geöffnet werden. Alternativ kann auch
   die Erweiterung <a href="ref.ftp.php" class="link">FTP</a> verwendet werden.
  </p>
  <p class="simpara">
   Wenn die Direktive <a href="filesystem.configuration.php#ini.from" class="link">from</a> in der <var class="filename">php.ini</var>
   gesetzt ist, dann wird dieser Wert als anonymes FTP-Passwort gesendet.
  </p>
 </div>


 <div class="refsect1 usage" id="refsect1-wrappers.ftp-usage"> 
  <h3 class="title">Verwendung</h3>
  <ul class="itemizedlist">
   <li class="listitem"><span class="simpara"><var class="filename">ftp://example.com/pub/file.txt</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">ftp://user:password@example.com/pub/file.txt</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">ftps://example.com/pub/file.txt</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">ftps://user:password@example.com/pub/file.txt</var></span></li>
  </ul>
 </div>
 

 <div class="refsect1 options" id="refsect1-wrappers.ftp-options">
  <h3 class="title">Optionen</h3>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Zusammenfassung des Wrappers</strong></caption>
    
     <thead>
      <tr>
       <th>Eigenschaft</th>
       <th>wird unterstützt</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>Eingeschränkt durch <a href="filesystem.configuration.php#ini.allow-url-fopen" class="link">allow_url_fopen</a></td>
       <td>Ja</td>
      </tr>

      <tr>
       <td>Erlaubt Lesen</td>
       <td>Ja</td>
      </tr>

      <tr>
       <td>Erlaubt Schreiben</td>
       <td>
        Ja (neue Dateien; vorhandene Dateien mit dem Parameter
        <code class="parameter">overwrite</code>)
       </td>
      </tr>

      <tr>
       <td>Erlaubt Anfügen</td>
       <td>Ja</td>
      </tr>

      <tr>
       <td>Erlaubt gleichzeitiges Lesen und Schreiben</td>
       <td>Nein</td>
      </tr>

      <tr>
       <td>Unterstützt <span class="function"><a href="function.stat.php" class="function">stat()</a></span></td>
       <td>
        Nur <span class="function"><a href="function.filesize.php" class="function">filesize()</a></span>, <span class="function"><a href="function.filemtime.php" class="function">filemtime()</a></span>,
        <span class="function"><a href="function.filetype.php" class="function">filetype()</a></span>, <span class="function"><a href="function.file-exists.php" class="function">file_exists()</a></span>,
        <span class="function"><a href="function.is-file.php" class="function">is_file()</a></span> und <span class="function"><a href="function.is-dir.php" class="function">is_dir()</a></span>.
       </td>
      </tr>

      <tr>
       <td>Unterstützt <span class="function"><a href="function.unlink.php" class="function">unlink()</a></span></td>
       <td>Ja</td>
      </tr>

      <tr>
       <td>Unterstützt <span class="function"><a href="function.rename.php" class="function">rename()</a></span></td>
       <td>Ja</td>
      </tr>

      <tr>
       <td>Unterstützt <span class="function"><a href="function.mkdir.php" class="function">mkdir()</a></span></td>
       <td>Ja</td>
      </tr>

      <tr>
       <td>Unterstützt <span class="function"><a href="function.rmdir.php" class="function">rmdir()</a></span></td>
       <td>Ja</td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>
 

 <div class="refsect1 notes" id="refsect1-wrappers.ftp-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    FTPS wird nur unterstützt, wenn die Erweiterung
    <a href="book.openssl.php" class="link">openssl</a> aktiviert ist.
   </p>
   <span class="simpara">
    Wenn SSL vom Server nicht unterstützt wird, wird die Verbindung auf
    normales unverschlüsseltes FTP zurückgesetzt.
   </span>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <strong>Anfügen</strong><br />
   <span class="simpara">
    Dateien können über den <code class="literal">ftp://</code>-URL-Wrapper angefügt
    werden.
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-wrappers.ftp-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><a href="context.ftp.php" class="xref">FTP-Kontextoptionen</a></li>
  </ul>
 </div>


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