array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.ftp-append.php', 1 => 'ftp_append', 2 => 'Append the contents of a file to another file on the FTP server', ), 'up' => array ( 0 => 'ref.ftp.php', 1 => 'FTP Functions', ), 'prev' => array ( 0 => 'function.ftp-alloc.php', 1 => 'ftp_alloc', ), 'next' => array ( 0 => 'function.ftp-cdup.php', 1 => 'ftp_cdup', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ftp/functions/ftp-append.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

ftp_append

(PHP 7 >= 7.2.0, PHP 8)

ftp_appendAppend the contents of a file to another file on the FTP server

Description

ftp_append(
    FTP\Connection $ftp,
    string $remote_filename,
    string $local_filename,
    int $mode = FTP_BINARY
): bool

Warning

This function is currently not documented; only its argument list is available.

Parameters

ftp

An FTP\Connection instance.

remote_filename

local_filename

mode

Return Values

Returns true on success or false on failure.

Changelog

Version Description
8.1.0 The ftp parameter expects an FTP\Connection instance now; previously, a resource was expected.