【发布时间】:2013-09-19 18:58:43
【问题描述】:
如何从 PHP 运行 s3cmd。 我想做的是在 s3 上备份某些文件,并将其公共 url 存储在数据库中。 $result = shell_exec("s3cmd put --skip-existing --acl-public /var/www/RD/temp.txt s3://xxxx/xxx/xx/");
但是当我运行 .php 文件时.. 没有任何反应..
我已经浏览了下面提到的链接,但它对我不起作用。 https://serverfault.com/questions/91443/why-shell-command-runs-from-command-line-but-not-from-php-script
阿布舍克·耆那教
【问题讨论】: