(PHP 7 >= 7.2.0, PHP 8)
ftp_append — Append the contents of a file to another file on the FTP server
$ftp,$remote_filename,$local_filename,$mode = FTP_BINARY
ftp_append() uploads the contents of
local_filename to the FTP server, appending them to
remote_filename instead of overwriting it.
ftpUn'istanza di FTP\Connection.
remote_filenameThe remote file path to append to.
local_filenameThe local file path whose contents are uploaded.
mode
The transfer mode. Must be either FTP_ASCII or
FTP_BINARY.
Throws a ValueError if
mode is not FTP_ASCII or
FTP_BINARY.
| Versione | Descrizione |
|---|---|
| 8.1.0 |
Il parametro ftp ora si aspetta un'istanza di FTP\Connection;
in precedenza, era attesa una resource.
|
| 8.0.0 |
Now throws a ValueError if
mode is not FTP_ASCII or
FTP_BINARY.
Previously, an E_WARNING was raised and false
was returned.
|