The zend framework provides a php wrapper for the amazon S3 api that simplifies the lower level REST functionality.
http://framework.zend.com/manual/en/zend.service.amazon.s3.html
For example to store a file in s3 all you need to do is
$s3->putFile("me.png", "my-own-bucket/Pictures/Me.png",
array(Zend_Service_Amazon_S3::S3_ACL_HEADER =>
Zend_Service_Amazon_S3::S3_ACL_PUBLIC_READ));
By default, objects are stored in buckets as regular storage. Is there any functionality in the zend framework that will allow me specify objects to be stored as Reduced Redundancy Storage (RRS) in S3?
If not is there any way I can set the default storage of all objects in a bucket as RRS?
http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPOST.html
Have you tried the following after RockyFords advice?
The code below should upload it in the correct mode.