Net_FTP::connect()

Net_FTP::connect() -- connects to a given FTP server

Synopsis

require_once 'Net/FTP.php';

mixed Net_FTP::connect ([string $host = null [, int $port = null]])

Beschreibung

Create a new object for communication with FTP servers.

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 "Connection failed" will be returned if the connection fails.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Beispiel