Created
August 2, 2012 08:21
-
-
Save kejyun/3235340 to your computer and use it in GitHub Desktop.
更新AWS S3容器檔案資訊
This file contains hidden or 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 | |
/* | |
* 更新容器檔案資訊 | |
*/ | |
$bucket = "kejyun-test"; //容器名稱 | |
$filepath = "/S3.txt"; //檔案路徑 | |
$s3 = new AmazonS3(); | |
$response = $s3->update_object($bucket, $filepath, array( | |
'acl' => AmazonS3::ACL_PUBLIC, | |
'headers' => array( | |
'Content-Encoding' => 'UTF-8' | |
) | |
)); | |
print_r($response); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment