First of all, I know that this a duplicate topic, but the other post that I found were not useful for my situation, so I decided to create a new one.
What I\'m tryin
Both ftp_get
and ftp_put
can operate with files only, not folders.
Use ftp_get
to download a file from the first server to a local temporary folder/file. And then use ftp_put
to upload the temporary file to the second server.
If you want to avoid using a temporary file, you can download the file to memory using ftp_fget
and re-upload to the second server using ftp_fput
.