PHP: How do I avoid reading partial files that are pushed to me with FTP?

后端 未结 7 1829
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 19:19

Files are being pushed to my server via FTP. I process them with PHP code in a Drupal module. O/S is Ubuntu and the FTP server is vsftp.

At regular intervals I will

7条回答
  •  有刺的猬
    2021-01-01 20:06

    The lsof linux command lists opened files on your system. I suggest executing it with shell_exec() from PHP and parsing the output to see what files are still being used by your FTP server.

提交回复
热议问题