Created
April 9, 2012 15:33
-
-
Save kejyun/2344275 to your computer and use it in GitHub Desktop.
AWS SDK SSL certificate problem solution 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(-1); | |
header("Content-type: text/plain; charset=utf-8"); | |
require_once "aws-sdk-for-php/sdk.class.php"; | |
$s3 = new AmazonS3(); | |
//********** 多加這一行 ********** | |
$s3->ssl_verification=false; | |
//********** 多加這一行 ********** | |
$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