<tfoot id='Q8aQg'></tfoot>
  • <small id='Q8aQg'></small><noframes id='Q8aQg'>

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

      1. “php_connect_nonb() 失败:操作正在进行中 (115)"间歇性发生

        时间:2023-10-30
            <tbody id='6519L'></tbody>

          <legend id='6519L'><style id='6519L'><dir id='6519L'><q id='6519L'></q></dir></style></legend>

            <tfoot id='6519L'></tfoot>
          1. <small id='6519L'></small><noframes id='6519L'>

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

                  本文介绍了“php_connect_nonb() 失败:操作正在进行中 (115)"间歇性发生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们通过 FTP 使用 PHP cron 作业将一些文件发送给第三方.

                  We send some files across to a third party with a PHP cron job via FTP.

                  但有时我们会收到以下错误:

                  However sometimes we get the following error:

                  ErrorException [ 2 ]: ftp_put(): php_connect_nonb() failed: Operation 
                  now in progress (115) ~ MODPATH/fileop/classes/Drivers/Fileop/Ftp.php [ 37 ]
                  

                  当我说有时"时,我的意思正是如此;大多数时候它都很好,但大约五分之一的时候我们会得到这个错误.这与文件本身无关,因为如果我们再试一次,它们会很开心.

                  When I say "sometimes" I mean exactly that; most times it goes across fine but about 1 in 5 times we get that error. It's not to do with the files themselves, because they will go happily if we try again.

                  我们在网上发现了类似的问题 - 与 PHP 中的错误 与 NAT 设备或与防火墙配置有关,但再次暗示如果是这种情况,它将永远工作.

                  We've found similar issues online - relating to a bug in PHP with NAT devices or to do with firewall configuration but again the implication is that if this were the case it would never work.

                  那么,为什么这有时会起作用而其他时候却不起作用?

                  So, why would this work some times and not others?

                  推荐答案

                  ftp_set_option($ftpconn, FTP_USEPASVADDRESS, false);
                  

                  设置被动连接前的这行代码ftp_pasv($ftpconn, true);

                  This line of code before setting passivity of the connection ftp_pasv($ftpconn, true);

                  解决了我的问题

                  这篇关于“php_connect_nonb() 失败:操作正在进行中 (115)"间歇性发生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:ftp_ssl_connect 与 tls 上的隐式 ftp 下一篇:删除 FTP 连接上的文件夹和所有文件

                  相关文章

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

                    1. <small id='ahKYu'></small><noframes id='ahKYu'>

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