Home > PHP > Extension > FTP

FTP

remote.other
  • ftp_alloc (ftp_stream, filesize, result) - Allocates space for a file to be uploaded
  • ftp_cdup (ftp_stream) - Changes to the parent directory
  • ftp_chdir (ftp_stream, directory) - Changes the current directory on a FTP server
  • ftp_chmod (ftp_stream, mode, filename) - Set permissions on a file via FTP
  • ftp_close (ftp_stream) - Closes an FTP connection
  • ftp_connect (host, port, timeout) - Opens an FTP connection
  • ftp_delete (ftp_stream, path) - Deletes a file on the FTP server
  • ftp_exec (ftp_stream, command) - Requests execution of a command on the FTP server
  • ftp_fget (ftp_stream, handle, remote_file, mode, resumepos) - Downloads a file from the FTP server and saves to an open file
  • ftp_fput (ftp_stream, remote_file, handle, mode, startpos) - Uploads from an open file to the FTP server
  • ftp_get (ftp_stream, local_file, remote_file, mode, resumepos) - Downloads a file from the FTP server
  • ftp_get_option (ftp_stream, option) - Retrieves various runtime behaviours of the current FTP stream
  • ftp_login (ftp_stream, username, password) - Logs in to an FTP connection
  • ftp_mdtm (ftp_stream, remote_file) - Returns the last modified time of the given file
  • ftp_mkdir (ftp_stream, directory) - Creates a directory
  • ftp_nb_continue (ftp_stream) - Continues retrieving/sending a file (non-blocking)
  • ftp_nb_fget (ftp_stream, handle, remote_file, mode, resumepos) - Retrieves a file from the FTP server and writes it to an open file (non-blocking)
  • ftp_nb_fput (ftp_stream, remote_file, handle, mode, startpos) - Stores a file from an open file to the FTP server (non-blocking)
  • ftp_nb_get (ftp_stream, local_file, remote_file, mode, resumepos) - Retrieves a file from the FTP server and writes it to a local file (non-blocking)
  • ftp_nb_put (ftp_stream, remote_file, local_file, mode, startpos) - Stores a file on the FTP server (non-blocking)
  • ftp_nlist (ftp_stream, remote_file, local_file, mode, startpos) - Returns a list of files in the given directory
  • ftp_pasv (ftp_stream, pasv) - Turns passive mode on or off
  • ftp_put (ftp_stream, remote_file, local_file, mode, startpos) - Uploads a file to the FTP server
  • ftp_pwd (ftp_stream) - Returns the current directory name
  • ftp_quit (ftp_stream) - Alias of ftp_close()
  • ftp_raw (ftp_stream, command) - Sends an arbitrary command to an FTP server
  • ftp_rawlist (ftp_stream, directory, recursive) - Returns a detailed list of files in the given directory
  • ftp_rename (ftp_stream, oldname, newname) - Renames a file or a directory on the FTP server
  • ftp_rmdir (ftp_stream, directory) - Removes a directory
  • ftp_set_option (ftp_stream, option, value) - Set miscellaneous runtime FTP options
  • ftp_site (ftp_stream, command) - Sends a SITE command to the server
  • ftp_size (ftp_stream, remote_file) - Returns the size of the given file
  • ftp_ssl_connect (host, port, timeout) - Opens an Secure SSL-FTP connection
  • ftp_systype (ftp_stream) - Returns the system type identifier of the remote FTP server