Forum Moderators: coopster

Message Too Old, No Replies

ftp_ssl_connect

         

devguy

8:07 pm on Mar 13, 2006 (gmt 0)

10+ Year Member



Hi, I am trying to use ftp_ssl_connect function to connect to another server and I am getting this error message:

Fatal error: Call to undefined function ftp_ssl_connect()

I have openssl and libssh2 both installed and phpinfo is showing both are enabled. I also used the ssh2 functions and got the same undefined function message.
My php server is redhat linux. Has anyone had a simillar problem? Your help is appreciated.

devguy

coopster

3:18 pm on Mar 15, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Did you read the notice on the ftp_ssl_connect() [php.net] page?


Why this function may not exist: ftp_ssl_connect() is only available if OpenSSL [php.net] support is enabled into your version of PHP. If it's undefined and you've compiled FTP support then this is why. For Windows you must compile your own PHP binaries to support this function.

The answer actually may lie in the openssl requirements. Don't know where else to point you.