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

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

Net_FTP::connect()

Net_FTP::connect() -- 指定された FTP サーバに接続する

説明

FTP サーバとの通信のための新規オブジェクトを生成します。

パラメータ

  • string $host = null - 接続先ホスト(IP アドレスあるいはドメイン名のいずれか)。 コンストラクタ等で事前に設定している場合、このパラメータは省略可能です。

  • int $port = null - サーバへの 接続のためのポート番号。コンストラクタ等で事前に設定している場合、 このパラメータは省略可能です。

返り値

mixed - 成功時には true 、それ以外は PEAR::Error

例外・エラー

エラー時に返される PEAR_Error オブジェクトの中身は不定です。 エラー番号やエラーメッセージは無視できます。なぜなら、この操作が 失敗した際は「接続に失敗した」以外の情報は得られないからです。

注意

この関数は、スタティックにコールする ことはできません。

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

Download Documentation Last updated: Sun, 05 Oct 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.