Remote upload file to server B

Try adding die('message'); and use that to debug where it fails. Also try and use ftp://external-server.com as opposed to just external-server.com. Also make sure you use your FTP password. And try it on active mode as opposed to passive mode. When I was trying to upload by FTP that’s what I had to do.

Also make sure the password for the FTP is encoded corectly. When I was doing it I had a problem where my password was using a symbol %, but when I would submit that in my PHP it wouldnt work, I had to submit that as hex.

Also sometimes it’s just a missing semicolon, that’s the worst.

Leave a Comment