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:

Tags: , , ,

One Response to “Amazon S3 & PHP to Dynamically Store Files with Ease”

  1. [...] See Part 1: Amazon S3 & PHP to Dynamically Store Files with Ease [...]

Leave a Reply

You must be logged in to post a comment.