FTP is the classic method; FTPS uses TLS; SFTP requires the PHP ssh2 extension.