Is there a way to set the output location for unix zip command?

时间:2019-03-06 11:39:12

标签: php unix location zip exec

Hi I'm trying to create a zip file by using the PHP exec method. For example:

exec("/usr/bin/zip -r5 archive.zip /var/www/vhosts/mydomain/uploads/test");

However I haven't found the way to set the output location of the archive.zip Is it even possible? I have read the documentation but didn't found it, or maybe it's called something else to achieve what I want !?

Thanks in advance.

0 个答案:

没有答案
相关问题