

we'll continue our script from here in the next step! Open the S3.php file and take a look around just to see all the work you will not be doing yourself thanks to this class! :-).The file comes with a readme and a few examples, too, but we won't be using those. rar file and copy the S3.php file to a new folder. Download the 'latest beta version (0.2.3)'.

Donovan Schonknecht has written a PHP class for this, so rather than trying to reinvent the wheel, we'll use that! Now, the first thing we'll need is a way for PHP to communicate with the S3 server. If you haven't heard about Amazon S3, or you don't have an account yet, read Collis' Introductory S3 Tutorial first. For this you'll need an Amazon S3 account and a PHP enabled webserver. Let's try!īasically 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. That way you wouldn't have to worry about the size of your web server for a second. 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. A couple of weeks ago, Nettuts+ posted an introductory tutorial to using Amazon's Simple Storage System (S3).
