php - Non-anonymous sessions must use encryption -
i trying connect ftp using php commands. when try login below error
warning: ftp_login(): non-anonymous sessions must use encryption
code have tried:
ftp_connect($ftp_server) ftp_get($ftp_conn, $local_file, $server_file, ftp_ascii)
though getting connected through filezilla . not sure error means. thanks
probably should use ftps instead of ftp, excerpt link:
in order maintain compatibility existing non-tls/ssl-aware ftp clients, implicit ftps expected listen on iana known port 990/tcp ftps control channel, , 989/tcp ftps data channel. allowed administrators retain legacy-compatible services on original 21/tcp ftp control channel.
the ftp server may sit on port connect to, tell you need connect port via ftp on ssl.
in php use ftp on ssl.
Comments
Post a Comment