Easy Tutorial
❮ Func Ftp Rmdir Php Imagesx Imagesy ❯

PHP ftp_nb_fput() Function



Definition and Usage

The ftp_nb_fput() function uploads a locally open file and saves it as a file on the FTP server. (Non-blocking)

The function returns one of the following values:

Unlike ftp_fput(), this function retrieves files 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 save on the FTP server.
local Required. Specifies the open 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":


❮ Func Ftp Rmdir Php Imagesx Imagesy ❯