Easy Tutorial
❮ Php Imagesx Imagesy Func Mysqli Get Client Stats ❯

PHP ftp_fget() Function



Definition and Usage

The ftp_fget() function downloads a file from an FTP server and saves it to a locally opened file.

The function returns TRUE on success and FALSE on failure.

Syntax

Parameter Description
ftp_connection Required. Specifies the FTP connection to use.
local Required. Specifies the locally opened file to save the content to.
remote Required. Specifies the path of the file to copy content from.
mode Required. Specifies the transfer mode. Possible values: FTP_ASCII<br> FTP_BINARY
resume Optional. Specifies where to start copying in the remote file. Default is 0.

Example

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


❮ Php Imagesx Imagesy Func Mysqli Get Client Stats ❯