我如何從PHP運行s3cmd。 我想要做的是在s3上備份某些文件,並將其存儲在數據庫中。 $ result = shell_exec(「s3cmd put --skip-existing --acl-public /var/www/RD/temp.txt s3:// xxxx/xxx/xx /」);我如何從PHP運行s3cmd?
然而,當我運行PHP文件..沒有任何反應..
我已經通過下面提到的鏈接了,但它沒有爲我工作。 https://serverfault.com/questions/91443/why-shell-command-runs-from-command-line-but-not-from-php-script
阿布舍克耆那教
小幅盤整:[代替--access鍵應該是--access_key] && [而不是--secret-key它應該是--secret_key] – 2017-02-14 19:40:34