PHP Manual
Prev |  | Next

# ftp_fput

(3.0.13 - 3.0.18 only, PHP 4 >= 4.0.0)

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

## Description

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

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`

Returns `TRUE` on success, `FALSE` on error.

Prev | Home | Next
ftp_put | Up | ftp_size