php亚马逊s3水桶创作

时间:2010-02-18 03:21:44

标签: php amazon-s3

我们尝试在Amazon S3上创建一个存储桶.............这个代码出了什么问题????????????

$req =& new HTTP_Request("http://s3.amazonaws.com/[bucket-name]"); 
$req->setMethod("PUT"); 
setAuthorizationHeader($req); 
$req->sendRequest(); 

if ($req->getResponseCode() == 200)
{     
    // bucket was created 
} 
else 
{     
    // something bad happened 
}

1 个答案:

答案 0 :(得分:0)

您可能希望将Pear implementation of an S3 Client视为参考(它仍处于alpha状态)