TulipTools Internet Business Owners and Online Sellers Community

Full Version: Tutorial: Creating an Amazon Storefront with PHP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Part 1: Create an Amazon storefront using PHP, Part 1: Getting content with Amazon ECS http://www.ibm.com/developerworks/edu/os...on1-i.html

Part 2:Create an Amazon storefront using PHP, Part 2:  http://www.ibm.com/developerworks/edu/os...on2-i.html

Quote:In this tutorial

In this tutorial, we will build an Amazon storefront containing category links and a search box, allowing shoppers to browse categories in your store. Unlike most PHP applications, this one requires no local database, as data is stored on Amazon's servers. Therefore, this tutorial relies heavily on the Simple Object Access Protocol (SOAP), a Web services protocol that organizes information in XML. Web services is the way in which applications, like the PHP application you will build throughout this tutorial, communicate with central servers to obtain information.

Through the Amazon E-Commerce Service (ECS), you will obtain and display content from categories that shoppers choose. When a category is selected, you will create parameters indicating that category, collect other relevant information, and launch a SOAP client. The SOAP client will take the parameters, form an XML document, and relay the XML document to the SOAP server. The Amazon server accesses its databases to create an XML document containing items that match the criteria. Finally, the server returns an XML document to your SOAP client, which parses it into a data structure from which you extract the requested data.

Prerequisites

This tutorial is for programmers interested in creating a storefront that automates the process of connecting to Amazon Web Services and displaying the result using PHP. This assumes you are familiar with basic PHP concepts, including for and while loops, and form handling. If you are uncertain of your PHP prowess, there are great tutorials available to help you get up to speed.

You should be familiar with Amazon Web Services, which are introduced in the developerWorks series "Boost application development with Amazon Web Services."

System requirements

To follow along with this tutorial, you will need to install and test the following tools, and retrieve two identifiers from Amazon:

Web Server
    Pick any Web server and operating system. Feel free to use Apache V2.X, or the IBM HTTP Server.
PHP
    You can follow along without PHP, but if you are interested in interacting with the sample application, download PHP V5. Make sure to enable the PHP SOAP extensions.
Amazon
    You need two things from Amazon: an Amazon Web Services developer token and an Amazon Associates ID.
Web Browser
    You need a Web browser. These include Mozilla, Firefox, Opera, and Microsoft Internet Explorer.
Like the world needs any more Amazon affiliate sites.  :Smile Protest