How can I use fopen("ftp://$user:$pass@$domain/test.php", "wb");
for FTP Explicit SSL/TLS ?
Something like fopen("ftpes://$user:$pass@$domain/test.php", "wb");
.
ftpes://
is not listed in Supported Protocols and Wrappers
From Filezilla Client, I can confirm that ftpes://$domain is right and even the user credentials are correct.
Basically I want to write the contents directly through fwrite()
, the same code works for ftp and ftps but not ftpes.
Let me know if any more information is required.
您需要ftp_ssl_connect ,但是请记住,如果您使用的是Windows,则需要编译自己的php二进制文件并静态链接OpenSSL和ftp模块。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.