(PHP 3>= 3.0.13, PHP 4 >= 4.0.0)
ftp_put -- FTP サーバーにファイルをアップロードする
説明
int ftp_put
(int ftp_stream, string remote_file, string local_file, int mode)
成功時に TRUE、エラー時に FALSE を返します。
ftp_put() は local_file を
remote_file として FTP サーバーに保存します。
mode には、FTP_ASCII
またはFTP_BINARY
例 1ftp_put() の例
$upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII);
|
|