【问题标题】:fopen() for FTP Explicit SSL/TLSfopen() 用于 FTP 显式 SSL/TLS
【发布时间】:2014-08-26 13:47:19
【问题描述】:

如何将fopen("ftp://$user:$pass@$domain/test.php", "wb"); 用于 FTP 显式 SSL/TLS?

类似fopen("ftpes://$user:$pass@$domain/test.php", "wb");

ftpes:// 未在Supported Protocols and Wrappers 中列出

从 Filezilla 客户端,我可以确认 ftpes://$domain 是正确的,甚至用户凭据也是正确的。

基本上我想直接通过fwrite()写内容,同样的代码适用于ftp和ftps但不适用于ftpes。

如果需要更多信息,请告诉我。

【问题讨论】:

    标签: php ftp ftps ftpes


    【解决方案1】:

    您需要ftp_ssl_connect,但请记住,如果您使用的是 Windows,则需要编译自己的 php 二进制文件并静态链接 OpenSSL 和 ftp 模块。

    【讨论】:

      猜你喜欢
      • 2011-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多