<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.remote.other.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'book.ftp.php',
    1 => 'FTP',
    2 => 'FTP',
  ),
  'up' => 
  array (
    0 => 'refs.remote.other.php',
    1 => 'Other Services',
  ),
  'prev' => 
  array (
    0 => 'class.eventexception.php',
    1 => 'EventException',
  ),
  'next' => 
  array (
    0 => 'ftp.setup.php',
    1 => 'Installing/Configuring',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ftp/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.ftp.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.ftp" class="book">
 
 <h1 class="title">FTP</h1>
 
 
 <div id="intro.ftp" class="preface">
  <h1 class="title">Introduction</h1>
  <p class="para">
   The functions in this extension implement client access to files
   servers speaking the File Transfer Protocol (FTP) as defined in 
   <a href="https://datatracker.ietf.org/doc/html/rfc959" class="link external">&raquo;&nbsp;https://datatracker.ietf.org/doc/html/rfc959</a>.  This extension is
   meant for detailed access to an FTP server providing a wide range
   of control to the executing script. If you only wish to
   read from or write to a file on an FTP server, consider using
   the <a href="wrappers.ftp.php" class="link"><code class="literal">ftp://</code> wrapper</a>
   with the <a href="ref.filesystem.php" class="link">filesystem functions</a>
   which provide a simpler and more intuitive interface.
  </p>
 </div>
 
 
 







 




 








 







 




<ul class="chunklist chunklist_book"><li><a href="ftp.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="ftp.installation.php">Installation</a></li><li><a href="ftp.resources.php">Resource Types</a></li></ul></li><li><a href="ftp.constants.php">Predefined Constants</a></li><li><a href="ftp.examples.php">Examples</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="ftp.examples-basic.php">Basic usage</a></li></ul></li><li><a href="ref.ftp.php">FTP Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.ftp-alloc.php">ftp_alloc</a> — Allocates space for a file to be uploaded</li><li><a href="function.ftp-append.php">ftp_append</a> — Append the contents of a file to another file on the FTP server</li><li><a href="function.ftp-cdup.php">ftp_cdup</a> — Changes to the parent directory</li><li><a href="function.ftp-chdir.php">ftp_chdir</a> — Changes the current directory on a FTP server</li><li><a href="function.ftp-chmod.php">ftp_chmod</a> — Set permissions on a file via FTP</li><li><a href="function.ftp-close.php">ftp_close</a> — Closes an FTP connection</li><li><a href="function.ftp-connect.php">ftp_connect</a> — Opens an FTP connection</li><li><a href="function.ftp-delete.php">ftp_delete</a> — Deletes a file on the FTP server</li><li><a href="function.ftp-exec.php">ftp_exec</a> — Requests execution of a command on the FTP server</li><li><a href="function.ftp-fget.php">ftp_fget</a> — Downloads a file from the FTP server and saves to an open file</li><li><a href="function.ftp-fput.php">ftp_fput</a> — Uploads from an open file to the FTP server</li><li><a href="function.ftp-get.php">ftp_get</a> — Downloads a file from the FTP server</li><li><a href="function.ftp-get-option.php">ftp_get_option</a> — Retrieves various runtime behaviours of the current FTP connection</li><li><a href="function.ftp-login.php">ftp_login</a> — Logs in to an FTP connection</li><li><a href="function.ftp-mdtm.php">ftp_mdtm</a> — Returns the last modified time of the given file</li><li><a href="function.ftp-mkdir.php">ftp_mkdir</a> — Creates a directory</li><li><a href="function.ftp-mlsd.php">ftp_mlsd</a> — Returns a list of files in the given directory</li><li><a href="function.ftp-nb-continue.php">ftp_nb_continue</a> — Continues retrieving/sending a file (non-blocking)</li><li><a href="function.ftp-nb-fget.php">ftp_nb_fget</a> — Retrieves a file from the FTP server and writes it to an open file (non-blocking)</li><li><a href="function.ftp-nb-fput.php">ftp_nb_fput</a> — Stores a file from an open file to the FTP server (non-blocking)</li><li><a href="function.ftp-nb-get.php">ftp_nb_get</a> — Retrieves a file from the FTP server and writes it to a local file (non-blocking)</li><li><a href="function.ftp-nb-put.php">ftp_nb_put</a> — Stores a file on the FTP server (non-blocking)</li><li><a href="function.ftp-nlist.php">ftp_nlist</a> — Returns a list of files in the given directory</li><li><a href="function.ftp-pasv.php">ftp_pasv</a> — Turns passive mode on or off</li><li><a href="function.ftp-put.php">ftp_put</a> — Uploads a file to the FTP server</li><li><a href="function.ftp-pwd.php">ftp_pwd</a> — Returns the current directory name</li><li><a href="function.ftp-quit.php">ftp_quit</a> — Alias of ftp_close</li><li><a href="function.ftp-raw.php">ftp_raw</a> — Sends an arbitrary command to an FTP server</li><li><a href="function.ftp-rawlist.php">ftp_rawlist</a> — Returns a detailed list of files in the given directory</li><li><a href="function.ftp-rename.php">ftp_rename</a> — Renames a file or a directory on the FTP server</li><li><a href="function.ftp-rmdir.php">ftp_rmdir</a> — Removes a directory</li><li><a href="function.ftp-set-option.php">ftp_set_option</a> — Set miscellaneous runtime FTP options</li><li><a href="function.ftp-site.php">ftp_site</a> — Sends a SITE command to the server</li><li><a href="function.ftp-size.php">ftp_size</a> — Returns the size of the given file</li><li><a href="function.ftp-ssl-connect.php">ftp_ssl_connect</a> — Opens a Secure SSL-FTP connection</li><li><a href="function.ftp-systype.php">ftp_systype</a> — Returns the system type identifier of the remote FTP server</li></ul></li><li><a href="class.ftp-connection.php">FTP\Connection</a> — The FTP\Connection class</li></ul></div><?php manual_footer($setup); ?>