Fix Warning: ftp_put(): Command denied by firewall
Enable passive mode: ftp_pasv($conn, true); * Place it after ftp_login()