ftp_put

(PHP 3>= 3.0.13, PHP 4 >= 4.0.0)

ftp_put -- Uploads a file to the FTP server.

Description

bool ftp_put ( resource ftp_stream, string remote_file, string local_file, int mode)

ftp_put() stores local_file on the FTP server, as remote_file. The transfer mode specified must be either FTP_ASCII or FTP_BINARY.

Returns TRUE on success, FALSE on error.