Fatal error: Call to undefined function ftp_ssl_connect()

后端 未结 2 1525
逝去的感伤
逝去的感伤 2021-01-24 02:24

I am trying to set up FTP SSL connection in PHP. I have used ftp_connect() fine and works great. As soon as I try to use ftp_ssl_connect(), I get thi

2条回答
  •  我在风中等你
    2021-01-24 02:58

    From PHP Documentation:

    Note: Why this function may not exist ftp_ssl_connect() is only available if both the ftp module and the OpenSSL support is built statically into php, this means that on Windows this function will be undefined in the official PHP builds. To make this function available on Windows you must compile your own PHP binaries.

    Note: ftp_ssl_connect() is not intended for use with sFTP. To use sFTP with PHP, please see ssh2_sftp().

    (BTW: I don't use Windows but I can't access to ftp_ssl_connect())

提交回复
热议问题