PHP exec problem with s3-put
- by schneck
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?