Accessing AWS S3 bucket in PHP | Period / Dot in Bucket Name

|
| By Webner

You may face a problem in your code if you are trying to access an AWS S3 bucket which contains period / dot in its name (like my.first.bucket). It gives a fatal error in PHP. This problem actually occurs with some AWS SDKs not all, so the solution is to use an alternate SDK.

Here is the link for new sdk that manages bucket names with dot very well-

https://github.com/aws/aws-sdk-php

Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce, Zoho), LMS Apps (Moodle/Totara), Websites and Mobile apps. If you need Web development or any other software development assistance please contact us at webdevelopment@webners.com

Leave a Reply

Your email address will not be published. Required fields are marked *