Net_FTP::put() (Previous) (Next) Net_FTP::putRecursive()

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

Net_FTP::getRecursive()

Net_FTP::getRecursive() -- スクリプトを動作させているコンピュータ上にディレクトリを丸ごとダウンロードする

説明

スクリプトを動作させているコンピュータに、FTP サーバから ディレクトリを丸ごとダウンロードします。

パラメータ

  • string $remote_path - ダウンロードしたいディレクトリ。絶対パス、あるいは相対パスで指定します (パスの最後には '/' をつけます)。

  • string $local_path - ダウンロードしたディレクトリの保存先。絶対パス、あるいはスクリプトの ディレクトリからの相対パスで指定します(注意:include を利用している 場合、スクリプトのディレクトリはインクルード元のファイルがある場所と なります!)

  • bool $overwrite = false - ローカルファイルが存在した場合に、それを上書きするかどうか。 指定しなかった場合、ディレクトリは上書きされません。

  • int $mode = null - 定数 FTP_ASCII あるいは FTP_BINARY のどちらかを指定しなければなりません。 指定されなかった場合、ファイルの拡張子から(extensions.ini によって) モードを決定します。それにも失敗した場合は標準転送モード (mode プロパティの値)が用いられます。

返り値

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

注意

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

Net_FTP::put() (Previous) (Next) Net_FTP::putRecursive()

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.