Net_FTP::getRecursive() (Previous) (Next) Net_FTP::checkFileExtension()

View this page in Last updated: Mon, 02 Jul 2007
English | French | German | Hungarian | Japanese | Polish | Spanish | Plain HTML

Net_FTP::putRecursive()

Net_FTP::putRecursive() -- upload a whole directory to the FTP server.

Opis

This uploads a whole directory to the FTP server from the computer your script runs on.

Parametr

  • string $local_path - The source directory you'd like to upload. You can specify this with either an absolute path or a path relative to the scripts directory. (Beware: The script directory is determined by the called script, if you use includes!)

  • string $remote_path - The path you'd like to upload to. This could either be an absolute or relative path to a directory.

  • bool $overwrite = false - Whether to overwrite the remote directory if it exists, or not. If not set the directory will not be overwritten.

  • int $mode = null - This has to be one of the constants FTP_ASCII or FTP_BINARY. If not specified, the class will try to determine the mode from the file extensions (from extensions.ini) or fall back to the standard transfer mode (attribute).

Zwracana wartość

mixed - true on success, otherwise PEAR::Error.

Uwagi

Ta funkcja nie może być wywołana statycznie.

Net_FTP::getRecursive() (Previous) (Next) Net_FTP::checkFileExtension()

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.