How to Use Amazon S3 & PHP to Dynamically Store and Manage Files with Ease
A couple of weeks ago, Nettuts+ posted an introductory tutorial to using Amazon's Simple Storage System (S3) . Being able to upload an unlimited number of files for hardly any money is great, but it would be even better if your users could upload files from your website. That way you wouldn't have to worry about the size of your web server for a second. Let's try! Basically what we're going to do is use a standard HTML file element and an easy to use S3 PHP class to make a page where people can upload a file to your S3 account and get information about the files that have already been uploaded. For this you'll need an Amazon S3 account and a PHP enabled webserver. If you haven't heard about Amazon S3, or you don't have an account yet, read Collis' Introductory S3 Tutorial first. Step 1 Now, the first thing we'll need is a way for PHP to communicate with the S3 server. Donovan Schonknecht has written a PHP class for this, so rather than t...