Getting started with AWS S3 using PHP – A Beginner’s guide

I often wonder, is it just me that doesn’t find the simplest version of code possible on the internet (without reading 50x un-necessary content) ? So from today I am starting to write my findings in the most simple way possible for complete beginners (and to refer myself in the future).

So lets quickly get started on Amazon’s wonderful AWS S3 + PHP Tutorial !

You Need :

  • Basic knowledge of PHP (functions, variables, namespaces, etc.)
  • An Amazon AWS Account (you can start with free tier)
  • Not afraid to get hands dirty


What is AWS – Amazon Web Services ?

Amazon web services, or in simple language, cloud, is the ongoing revolution in the field of servers and computing. Just like we don’t have to generate electricity or pump water in each of our homes (and let Municipal corporation / local government does that) similarly we allow ‘plug and play’ providers like Amazon AWS, Microsoft Azure, Google Cloud, etc. does that for us.


Just like electricity, we get a monthly bill generated at the end of the month and only pay for what we have used. This differs from traditional Hosting Providers(Shared, VPS, etc)  in two ways :

  • You only pay for what you use. So if your website isn’t that popular (10 / 20 pageviews a day for example), you pay only for those 20 visitors (or more specifically, their bandwidth).
  • Your Website / Backend isn’t throttled if, say a million visitors, arrive at your site at once. <insert 21 cents article here>


It is interesting to notew that the definition of ‘cloud’ itself is ambuigious (like ‘apps’).  Variouds new age VPS Providers like Digital Ocean bill by the hour (instead of month) and are considered to be hybridn of VPS + Cloud. They are pretty good at what they do (SSD servers from, 5 USD per month)  – read my review here.


Amazon Web Services : for normal people


It baffles me even topday why would Amazon pick such ‘heavyweight’ names for their services. EC2, S3, RDS, DynamoDB, SES, Route 53, etc.

What the hell does each of these mean ? (we would bge working on S3 only in this tutorial)






Page load time with CDN – Content Delivery networks

CDNs or Content Delivery Networks ( are basically additional Computers distributed across the planet APART FROM the WEB SERVER to serve STATIC CONTENT.   This Video will make it much more clear :   I am currently using a Godaddy Premium Hosting and am fairly satisfied with it (after you get over the feeling of…

Watch FULL Rahul Gandhi Interview with Arnab Goswami – Part 1

In this exclusive  Rahul Gandhi Interview, watch how Arnav Goswami tackles with Rahul Gandhi Watch COMPLETE Rahul Gandhi interview with Arnab Goswami on Times Now. 27th Jan 2014. In his first ever Interview in ten years, he discussed about his father, grandmother and how he is looking to change the nation. He was , however, not…

Google Chromebooks in India : Why Indians can be Fooled so Easily ?

I was pleasantly surprised when Google, in a bold move, decided to launch its own, no-frills, Operating System , the Chrome OS. Even more surprised seeing the Fast, Powerful and Reliable 199 USD Chromebooks. Hell, I am typing this on one of them right now. Chromebooks, after initial skepticism, were a rage among school students…