[英]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
单个文件 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.