Forum und email

ftp_put

(PHP 4, PHP 5)

ftp_put — Überträgt eine Datei auf einen FTP-Server (upload)

Beschreibung

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

Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.

ftp_put() speichert die per local_file bestimmte Datei auf den FTP-Server als Datei namens remote_file . Der Übertragungs-Modus-Parameter mode muss entweder FTP_ASCII oder FTP_BINARY lauten.

Example#1 ftp_put()-Beispiel:

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