Installing the PHP SDK
Actually, this is not a snippet, just some simple instructions on how to setup the PHP SDK.
post this code
Apache HTTP Server (or any other suitable web server)
PHP with curl library
A valid Amazon AWS account
- Download the SDK from here:
- 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:
// make any API call
If you want to be updated about similar snippets,
and follow our Channels