ftp_get
(PHP 4, PHP 5)
ftp_get — Liest eine Datei von einem FTP-Server und speichert sie lokal (download)
Beschreibung
int ftp_get
( int $ftp_stream
, string $local_file
, string $remote_file
, int $mode
)
Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.
ftp_get() lädt das remote_file vom FTP-Server und speichert es unter local_file auf ihren lokalen Arbeitsplatz. Der anzugebende Transfer-Parameter mode muss entweder FTP_ASCII oder FTP_BINARY sein.