Net_FTP::login()

Net_FTP::login() -- logs into the FTP server you are connected to

Synopsis

require_once 'Net/FTP.php';

mixed Net_FTP::login ([string $username = null [, int $password = null]])

Beschreibung

Does the login on the FTP server you are connected to. for that you first have to connect to a FTP server before logging in. Username and Password can either be set by the parameters or manually before (using the set-methods).

Parameter

Rückgabewert

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

Fehler-Meldungen

The returned PEAR_Error object in case of an error is unspecific. You can ignore the errornumber and errormessage, because only "Login failed" will be returned if the login fails.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Beispiel