title: How do i run s3cmd from PHP?
body: <p>How do i run s3cmd from PHP.
  What i am trying to do is backup certain files on s3 and will be storing its public url in database.
  $result = shell_exec("s3cmd put --skip-existing --acl-public /var/www/RD/temp.txt s3://xxxx/xxx/xx/");</p>
  
  <p>However when i run the .php file .. nothing happens..</p>
  
  <p>I have gone through the link mentioned below, but it didnt work for me.
  <a href="https://serverfault.com/questions/91443/why-shell-command-runs-from-command-line-but-not-from-php-script">https://serverfault.com/questions/91443/why-shell-command-runs-from-command-line-but-not-from-php-script</a></p>
  
  <p>Abhishek Jain</p>