ftp_fput -- Uploads from an open file to the FTP server.


int ftp_fput(int ftp_stream, string remote_file, int fp, int mode);

Returns true on success, false on error.

ftp_fput() uploads the data from the file pointer fp until end of file. The results are stored in remote_file on the FTP server. The transfer mode specified must be either FTP_ASCII or FTP_BINARY.