tags:

views:

19

answers:

1

Hi, 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/");

However when i run the .php file .. nothing happens..

I have gone through the link mentioned below, but it didnt work for me. http://serverfault.com/questions/91443/why-shell-command-runs-from-command-line-but-not-from-php-script

Abhishek Jain

A: 

Why not instead use a proper PHP S3 library? Take a look at http://code.google.com/p/amazon-s3-php-class/

Sid