Open local file, and upload it to a file on the FTP server:
The ftp_fput() function uploads from an open file and saves it to a file on the FTP server.
Parameter | Description |
---|---|
ftp_connection | Required. Specifies the FTP connection to use |
remote_file | Required. Specifies the file path to upload to |
open_file | Required. Specifies an open local file. Reading stops at end of file |
mode | Required. Specifies the transfer mode. Possible values: FTP_ASCII or FTP_BINARY |
startpos | Optional. Specifies the position in the remote file to start uploading to |
Return Value: | Returns TRUE on success or FALSE on failure |
---|---|
PHP Version: | 4+ |
PHP Changelog: | The startpos parameter was added in PHP 4.3.0 |