我可以通过FTP访问wordpress主题文件夹目录。我想在主题文件夹中删除一个特定的文件夹,以便我可以下载它。我用的是什么代码?
/wp-content/themes/ - my directory to access
我的主题文件夹名称为' vintage'
我想上传并在/ wp-content / themes /中运行一个php代码,因此它会生成一个zip文件或文件夹' vintage'位于/ wp-content / themes /任何人都可以帮我这个吗?
答案 0 :(得分:0)
可能是这样的:
system('cd /path/to/htdocs/wp-content/themes/; zip -r vintage.zip ./');