<bdo id='xbv9e'></bdo><ul id='xbv9e'></ul>

<small id='xbv9e'></small><noframes id='xbv9e'>

<tfoot id='xbv9e'></tfoot>
<legend id='xbv9e'><style id='xbv9e'><dir id='xbv9e'><q id='xbv9e'></q></dir></style></legend>
  • <i id='xbv9e'><tr id='xbv9e'><dt id='xbv9e'><q id='xbv9e'><span id='xbv9e'><b id='xbv9e'><form id='xbv9e'><ins id='xbv9e'></ins><ul id='xbv9e'></ul><sub id='xbv9e'></sub></form><legend id='xbv9e'></legend><bdo id='xbv9e'><pre id='xbv9e'><center id='xbv9e'></center></pre></bdo></b><th id='xbv9e'></th></span></q></dt></tr></i><div id='xbv9e'><tfoot id='xbv9e'></tfoot><dl id='xbv9e'><fieldset id='xbv9e'></fieldset></dl></div>

        ftp_ssl_connect 与 tls 上的隐式 ftp

        时间:2023-10-30

            <i id='Q4NNK'><tr id='Q4NNK'><dt id='Q4NNK'><q id='Q4NNK'><span id='Q4NNK'><b id='Q4NNK'><form id='Q4NNK'><ins id='Q4NNK'></ins><ul id='Q4NNK'></ul><sub id='Q4NNK'></sub></form><legend id='Q4NNK'></legend><bdo id='Q4NNK'><pre id='Q4NNK'><center id='Q4NNK'></center></pre></bdo></b><th id='Q4NNK'></th></span></q></dt></tr></i><div id='Q4NNK'><tfoot id='Q4NNK'></tfoot><dl id='Q4NNK'><fieldset id='Q4NNK'></fieldset></dl></div>

            <small id='Q4NNK'></small><noframes id='Q4NNK'>

                  <tbody id='Q4NNK'></tbody>
                  <bdo id='Q4NNK'></bdo><ul id='Q4NNK'></ul>
                  <legend id='Q4NNK'><style id='Q4NNK'><dir id='Q4NNK'><q id='Q4NNK'></q></dir></style></legend>
                • <tfoot id='Q4NNK'></tfoot>

                • 本文介绍了ftp_ssl_connect 与 tls 上的隐式 ftp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  ftp_ssl_connect 能否通过 TLS 处理隐式 FTP?默认情况下它使用显式.

                  Can ftp_ssl_connect handle Implicit FTP over TLS? By default it uses explicit.

                  我正在尝试上传到仅接受通过 tls 在端口 990 上的隐式 ftp 的服务器;有没有人遇到过这个?你是怎么解决的?

                  I'm trying to upload to a server that accepts only Implicit ftp over tls on port 990; has anybody run into this as of yet? How did you fix it?

                  推荐答案

                  ftp_ssl_connect 只是显式的

                  ftp_ssl_connect is only explicit

                  如果你需要隐式,使用 curl

                  if you need implicit, use curl

                  $fp = fopen($path, 'r');
                  $ftp_server = 'ftps://'.$server.'/'.$filename; 
                  $ch = curl_init(); 
                  curl_setopt($ch, CURLOPT_URL, $ftp_server);
                  curl_setopt($ch, CURLOPT_USERPWD,$user.':'.$pass);
                  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
                  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
                  curl_setopt($ch, CURLOPT_FTP_SSL, CURLFTPSSL_TRY);
                  curl_setopt($ch, CURLOPT_FTPSSLAUTH, CURLFTPAUTH_TLS);
                  curl_setopt($ch, CURLOPT_UPLOAD, 1);
                  curl_setopt($ch, CURLOPT_INFILE, $fp);
                  
                  $output = curl_exec($ch);
                  $error_no = curl_errno($ch);
                  //var_dump(curl_error($ch));
                  curl_close($ch);
                  

                  这篇关于ftp_ssl_connect 与 tls 上的隐式 ftp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 PHP 中创建文件并将其上传到 FTP 服务器,而不在本地保存 下一篇:“php_connect_nonb() 失败:操作正在进行中 (115)"间歇性发生

                  相关文章

                  <legend id='uXPGl'><style id='uXPGl'><dir id='uXPGl'><q id='uXPGl'></q></dir></style></legend>
                    <tfoot id='uXPGl'></tfoot>
                        <bdo id='uXPGl'></bdo><ul id='uXPGl'></ul>

                    1. <i id='uXPGl'><tr id='uXPGl'><dt id='uXPGl'><q id='uXPGl'><span id='uXPGl'><b id='uXPGl'><form id='uXPGl'><ins id='uXPGl'></ins><ul id='uXPGl'></ul><sub id='uXPGl'></sub></form><legend id='uXPGl'></legend><bdo id='uXPGl'><pre id='uXPGl'><center id='uXPGl'></center></pre></bdo></b><th id='uXPGl'></th></span></q></dt></tr></i><div id='uXPGl'><tfoot id='uXPGl'></tfoot><dl id='uXPGl'><fieldset id='uXPGl'></fieldset></dl></div>
                    2. <small id='uXPGl'></small><noframes id='uXPGl'>