简体   繁体   English

ZIP 中的文件在 ZIP 文件使用 Z2FEC392324A5C23AC13

[英]Archive files in ZIP on FTP server before ftp_get() the ZIP file using PHP

I would like to know if there is a way, using PHP, to archive some files in a ZIP on the FTP server (not the PHP server) then proceed with the ftp_get() . I would like to know if there is a way, using PHP, to archive some files in a ZIP on the FTP server (not the PHP server) then proceed with the ftp_get() .

So far I can:到目前为止,我可以:

  • ftp_get a single file ftp_get单个文件
  • Archive on the PHP server the FTP files, then download it on client.在 PHP 服务器上存档 FTP 文件,然后在客户端下载。 This method is not good cause it makes every single files travel from FTP server to PHP server, then archive on the go and finaly sent to the client (browser).这种方法不好,因为它会使每个文件从 FTP 服务器传输到 PHP 服务器,然后在 go 上存档,最后发送到客户端(浏览器)。

What I need is really to archive on FTP server then proceed with the ftp_get .我真正需要的是在 FTP 服务器上存档,然后继续ftp_get

Any idea?任何想法? thanks谢谢

There's no API in the FTP protocol to ZIP files on a server.服务器上的 ZIP 文件的 FTP 协议中没有 API。


So unless you have another access interface (like an SSH shell access), you cannot do this.因此,除非您有另一个访问接口(例如 SSH shell 访问),否则您不能这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM