Net_FTP::putRecursive()

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

Synopsis

require_once 'Net/FTP.php';

mixed Net_FTP::putrecursive (string $local_path, string $remote_path [, bool $overwrite = false [, int $mode = null]])

Beschreibung

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

Parameter

Rückgabewert

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

Fehler-Meldungen

Several errors may be returned by putRecursive. The errornumber is unspecific (until now) and will not tell you anything about the errormessage. Possible errors are:

Tabelle 49-1. Mögliche Fehler-Arten

Error messageDescriptionSolution
Given local-path '$local_path' seems not to be a directory. The local path you have specified does not seem to be a directory. Correct the local directory path. (Does it end with '/'?)
Given remote-path '$remote_path' seems not to be a directory. The remote path you have specified does not seem to be a directory. Correct the local directory path. (Does it end with '/'?)

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Beispiel