php - ftp_get - Warning: ftp_get(): Opening BINARY mode data connection

后端 未结 5 620
自闭症患者
自闭症患者 2021-01-13 07:04

I\'m trying to write a script that will download files from an FTP server. They\'re all fairly large (nearly 2GB each). The script starts running, but then eventually term

5条回答
  •  青春惊慌失措
    2021-01-13 08:05

    Are you sure each file is binary?

    You may try to guess the file type from its extension in order to adjust the download mode, as suggested in this comment: http://www.php.net/manual/fr/function.ftp-get.php#86516

提交回复
热议问题