Easy Tutorial
❮ Php Mysql Select Func Array Slice ❯

PHP ftp_nb_put() Function



Definition and Usage

The ftp_nb_put() function uploads a local file to an FTP server. (Non-blocking)

This function returns one of the following values:

Unlike ftp_put(), this function retrieves the file asynchronously. This means your program can perform other operations while the file is being downloaded.

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 upload.
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":


❮ Php Mysql Select Func Array Slice ❯