php亚马逊s3存储桶创建
问题描述:
我们尝试在Amazon S3上创建存储桶.............这个代码有什么问题????????????php亚马逊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
}
我想'HTTP_Request'是'梨/ HTTP_Request'? – 2010-02-18 03:25:05