How do you make $s3->get_object_url() from PHP SDK return:
http://my-bucket.my-domain.com/example.txt
instead of
http://my-bucket.s3.amazonaws.com/example.txt
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
S3 doesn’t know if a bucketname has a CNAME set up for it, so you’ll have to do it yourself. A simple call to
preg_replaceshould work fine.