Skip to content

Instantly share code, notes, and snippets.

@kejyun
Created April 9, 2012 15:16
Show Gist options
  • Save kejyun/2344175 to your computer and use it in GitHub Desktop.
Save kejyun/2344175 to your computer and use it in GitHub Desktop.
AWS SDK List Bucket Example
<?php
error_reporting(-1);
header("Content-type: text/plain; charset=utf-8");
require_once "aws-sdk-for-php/sdk.class.php";
$s3 = new AmazonS3();
$response = $s3->list_buckets();
print_r($response);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment