Close

Not a member yet? Register now and get started.

lock and key

Sign in to your account.

Account Login

Forgot your password?

Amazon S3 & PHP to Dynamically Store Files with Ease

07 Jun Posted by bryan in Web Development | View Comments
Amazon S3 & PHP to Dynamically Store Files with Ease

First, sign up for Amazon Web Services. Choose the “Amazon Simple Storage Service”. Once you sign up, you will need to click “Sign Up For This Web Service”. Once you do that, click on “AWS Access Identifiers”. You will use your access key id, and your secret access key below.

Now, we’ll need is a way for PHP to communicate with the S3 server. Donovan Schonknecht has written a PHP class for this, so we will use that.

You also need to create a “bucket” (Amazon terminology for a folder). To access your S3, use the S3Fox extension from RJonna. Once you connect, right-click on the right hand side, and choose create directory. FYI: Bucket names have to be unique across the service. Then Right-Click on the bucket and click Edit-ACL to modify the permissions. You will need to allow everyone read access.

Finally, an example image stored on S3:

blog comments powered by Disqus