Net_FTP::Net_FTP() (Previous) (Next) Net_FTP::disconnect()

View this page in Last updated: Sun, 28 Sep 2008
English | French | German | Hungarian | Japanese | Polish | Spanish | Plain HTML

Net_FTP::connect()

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

Description

Create a new object for communication with FTP servers.

Paramètres

  • string $host = null - The host to connect to ( either an IP address or a domain name). This parameter can be left out, if it has been set in the constructor or manually!

  • int $port = null - The port to connect to on the server. This parameter can be left out, if it has been set in the constructor or manually!

Valeur retournée

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

Valeurs renvoyées

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.

Note

Cette fonction ne peut pas être appelée de façon statique.

Net_FTP::Net_FTP() (Previous) (Next) Net_FTP::disconnect()

Download Documentation Last updated: Sun, 28 Sep 2008
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.