简体   繁体   English

用于FTP显式SSL / TLS的fopen()

[英]fopen() for FTP Explicit SSL/TLS

How can I use fopen("ftp://$user:$pass@$domain/test.php", "wb"); 我如何使用fopen("ftp://$user:$pass@$domain/test.php", "wb"); for FTP Explicit SSL/TLS ? 用于FTP显式SSL / TLS?

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

ftpes:// is not listed in Supported Protocols and Wrappers 支持的协议和包装中未列出ftpes://

From Filezilla Client, I can confirm that ftpes://$domain is right and even the user credentials are correct. 在Filezilla Client中,我可以确认ftpes:// $ domain是正确的,甚至用户凭证也是正确的。

Basically I want to write the contents directly through fwrite() , the same code works for ftp and ftps but not ftpes. 基本上,我想直接通过fwrite()写入内容,相同的代码适用于ftp和ftps,但不适用于ftpes。

Let me know if any more information is required. 让我知道是否需要更多信息。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM