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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -