我们尝试在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
}