★ wanayoo — archive 1999 http://www.phpwizard.net/resources/quickref/php_ftp.htmlNouvelle recherche | Portail wanayoo
phpWizard.net - Building Dynamic Websites with PHP
   Projects | Resources | The Book | About |
  Resources
 -Tutorials
 -Quick Reference
 -Link Directory
 -Scriptlets
 +Bookstore
 +Fun Stuff
 Quick Reference: php_ftp

  • int ftp_connect(string host [, int port])
    Open a FTP stream
  • int ftp_login(int stream, string username, string password)
    Logs into the FTP server.
  • string ftp_pwd(int stream)
    Returns the present working directory.
  • int ftp_cdup(int stream)
    Changes to the parent directory
  • int ftp_chdir(int stream, string directory)
    Changes directories
  • string ftp_mkdir(int stream, string directory)
    Creates a directory
  • int ftp_rmdir(int stream, string directory)
    Removes a directory
  • array ftp_nlist(int stream, string directory)
    Returns an array of filenames in the given directory
  • array ftp_rawlist(int stream, string directory)
    Returns a detailed listing of a directory as an array of output lines
  • string ftp_systype(int stream)
    Returns the system type identifier
  • int ftp_pasv(int stream, int pasv)
    Turns passive mode on or off.
  • int ftp_get(int stream, string local_file, string remote_file, int mode)
    Retrieves a file from the FTP server and writes it to a local file.
  • int ftp_fget(int stream, int fp, string remote_file, int mode)
    Retrieves a file from the FTP server and writes it to an open file.
  • int ftp_put(int stream, string remote_file, string local_file, int mode)
    Stores a file on the FTP server
  • int ftp_fput(int stream, string local_file, string remote_file, int mode)
    Stores a file from an open file to the FTP server.
  • int ftp_size(int stream, string path)
    Returns the size of the file, or -1 on error.
  • int ftp_mdtm(int stream, string path)
    Returns the last modification time of the file, or -1 on error
  • int ftp_rename(int stream, string src, string dest)
    Renames the given file to a new path
  • int ftp_delete(int stream, string path)
    Deletes a file
  • int ftp_site(int stream, string cmd)
    Sends a SITE command to the server
  • int ftp_quit(int stream)
    Closes the FTP stream


  • Copyright 1998-2000 Tobias Ratschiller.