by
8,522 33
0
5
2,347
0
Top 1% !
Popular
Famous
Specified
OpenSource
Popularity: 6516th place
Created
Modified Jul 23, 2013

Published on:

No tags for this snippet yet.
Extension.php
LanguagePHP
LicenseMIT_X11
Target Frameworkaws

Installing the PHP SDK

Actually, this is not a snippet, just some simple instructions on how to setup the PHP SDK.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/4453/Installing-the-PHP-SDK?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
Prerequisites: Apache HTTP Server (or any other suitable web server) PHP with curl library A valid Amazon AWS account - Download the SDK from here: http://pear.amazonwebservices.com/get/sdk-latest.zip - Extract the zip file in the root of your web server application. - Rename the file config-sample.inc.php to config.inc.php - Edit the file config.inc.php putting your key and secret To obtain those values, log-in to your AWS management console. Click "Account", then "Security Credentials". Scroll down to find your AWS Key and Secret Key. - Write any PHP script, including the SDK at the very beginning of your application: <?php require_once 'sdk.class.php'; // ... // make any API call // ... ?>
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus