Upload local file to a file on the FTP server:
The ftp_put() function uploads a file to the FTP server.
Parameter | Description |
---|---|
ftp_connection | Required. Specifies the FTP connection to use |
remote_file | Required. Specifies the file path to upload to |
local_file | Required. Specifies the path of the file to upload |
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 |