<legend id='sYtm3'><style id='sYtm3'><dir id='sYtm3'><q id='sYtm3'></q></dir></style></legend>
  • <small id='sYtm3'></small><noframes id='sYtm3'>

    <tfoot id='sYtm3'></tfoot>

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

        如何确定文件是否仍在通过 ftp 传输

        How to determine whether a file is still being transferred via ftp(如何确定文件是否仍在通过 ftp 传输)
      2. <i id='i079S'><tr id='i079S'><dt id='i079S'><q id='i079S'><span id='i079S'><b id='i079S'><form id='i079S'><ins id='i079S'></ins><ul id='i079S'></ul><sub id='i079S'></sub></form><legend id='i079S'></legend><bdo id='i079S'><pre id='i079S'><center id='i079S'></center></pre></bdo></b><th id='i079S'></th></span></q></dt></tr></i><div id='i079S'><tfoot id='i079S'></tfoot><dl id='i079S'><fieldset id='i079S'></fieldset></dl></div>
            <tbody id='i079S'></tbody>
            • <bdo id='i079S'></bdo><ul id='i079S'></ul>

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

            • <tfoot id='i079S'></tfoot>

                • <legend id='i079S'><style id='i079S'><dir id='i079S'><q id='i079S'></q></dir></style></legend>

                  本文介绍了如何确定文件是否仍在通过 ftp 传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个目录,其中包含需要使用 PHP 批量处理的文件.文件通过 FTP 复制到服务器上.有些文件非常大,需要很长时间才能复制.如何在 PHP 中确定文件是否仍在传输中(以便我可以跳过对该文件的处理并在批处理的下一次运行中处理它)?

                  I have a directory with files that need processing in a batch with PHP. The files are copied on the server via FTP. Some of the files are very big and take a long time to copy. How can I determine in PHP if a file is still being transferred (so I can skip the processing on that file and process it in the next run of the batch process)?

                  一种可能是获取文件大小,稍等片刻,然后验证文件大小是否不同.这不是防水的,因为传输只是暂停了片刻的可能性很小......

                  A possibility is to get the file size, wait a few moments, and verify if the file size is different. This is not waterproof because there is a slight chance that the transfer was simply stalled for a few moments...

                  推荐答案

                  我们的服务器管理员建议使用 ftpwho,它会输出当前传输的文件.

                  Our server admin suggested ftpwho, which outputs which files are currently transferred.

                  http://www.castaglia.org/proftpd/doc/ftpwho.html

                  所以解决的办法是解析ftpwho的输出,看目录中是否有文件正在传输.

                  So the solution is to parse the output of ftpwho to see if a file in the directory is being transferred.

                  这篇关于如何确定文件是否仍在通过 ftp 传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

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

                          <legend id='2r7zC'><style id='2r7zC'><dir id='2r7zC'><q id='2r7zC'></q></dir></style></legend>
                          • <bdo id='2r7zC'></bdo><ul id='2r7zC'></ul>

                              <tbody id='2r7zC'></tbody>
                            <tfoot id='2r7zC'></tfoot>