This question already has an answer here:
- How to SFTP with PHP? 4 answers
I'm interested in trying to get SFTP working with the following PHP method: ftp_ssl_connect(host,port,timeout);
I notice that on W3CSchools (http://www.w3schools.com/php/func_ftp_ssl_connect.asp) there is the following note:
Note: This function is only available if both the ftp module and the OpenSSL support is built statically into PHP.
I am left with the question as to how to "build statically" both the "ftp module" and "OpenSSL support" into PHP. I have googled around and there seems to be very sparse information on this subject.
When I currently try to run the code from W3CSchools with legitimate credentials, I constantly get "false" returned. I can successfully SFTP in with the same credentials and port I am using with PHP, so that isn't the problem.
I realize there is another similar question on StackOverflow; however, that question does not even mention nor give an explanation as to how to use the PHP function ftp_ssl_connect() and I would still like to know how to use it and when to use it.
</div>