PHP exec problem with s3-put
Posted
by schneck
on Stack Overflow
See other posts from Stack Overflow
or by schneck
Published on 2010-04-01T10:08:20Z
Indexed on
2010/04/01
10:13 UTC
Read the original article
Hit count: 158
Hi there,
I use the s3-bash-project to upload data to an S3-Bucket. My command looks like this:
/mypath/s3_bash/s3-put -v -k '123456789' -s '/mypath/secret' -T '/mypath/upload/myuploadfile' '/my.bucket/mykeyname'
I can run the command from the command line (Mac OS X), and it works well. Now I want to execute it from a PHP-Script:
exec($command, $output);
but in output, the "s3-put"-command only returns the command's help text. I log the command, and it works if I c&p it from the log the the command line, so there not a problem. It seems that PHP does not pass all the parameters to the command line, although I run escapeshellarg() over all the parameters.
I'm using a local XAMPP-Test environment, safe_mode is off.
Any ideas?
© Stack Overflow or respective owner