Easy Tutorial
❮ Php Imagecolorallocate Pdostatement Fetchcolumn ❯

PHP ftp_put() Function



Definition and Usage

The ftp_put() function uploads a file from the local machine to an FTP server.

If successful, the function returns TRUE. If it fails, it returns FALSE.

Syntax

Parameter Description
ftp_connection Required. Specifies the FTP connection to use.
remote Required. Specifies the file to be saved on the FTP server.
local Required. Specifies the path of the file to be uploaded.
mode Required. Specifies the transfer mode. Possible values: FTP_ASCII<br> FTP_BINARY
resume Optional. Specifies where to start copying in the local file. Default is 0.

Example

This example copies text from "source.txt" to "target.txt":

The above code will output:

❮ Php Imagecolorallocate Pdostatement Fetchcolumn ❯