PHP ftp_put fails with “Warning: ftp_put (): PORT command successful”

前端 未结 2 1412
萌比男神i
萌比男神i 2021-01-04 14:02

File is created on the FTP server, but its always 0 bytes large. Please give me a solution so that the file upload will working success.

I keep getting this warning

2条回答
  •  滥情空心
    2021-01-04 14:30

    Try two things:

    1. Try FTP_BINARY instead of FTP_ASCII
    2. Try to use passive mode doc here

提交回复
热议问题