ftp_put

(PHP 3>= 3.0.13, PHP 4 , PHP 5)

ftp_put -- Carica un file sul server FTP

Descrizione

int ftp_put ( int ftp_stream, string remote_file, string local_file, int mode)

ftp_put() salva local_file sul server FTP, come remote_file. Il parametro mode che spedifica il tipo di trasferimento deve essere FTP_ASCII oppure FTP_BINARY.

Restituisce TRUE se a buon fine, FALSE in caso di errore.

Esempio 1. Esempio di ftp_put()

$upload = ftp_put ($conn_id, $destination_file, $source_file, FTP_ASCII);