ftp_get

(PHP3 >= 3.0.13, PHP4 >= 4.0b4)

ftp_get -- FTPサーバーからファイルをダウンロードする

説明

int ftp_get (int ftp_stream, string local_file, string remote_file, int mode)

成功時に true、エラー時に false を返します。

ftp_get() は、FTPサーバーからremote_file を取得し、ローカルシステムの local_file に保存します。 転送モード mode は、 FTP_ASCII または FTP_BINARY のどちらかを指定する必要があります。