Retrieves the website configuration for a bucket. The contents of this response are identical to the content submitted by the user during the website creation operation. If a website configuration has never been set, Amazon S3 will return a 404 error.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the bucket to use. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Get an existing website configuration.
// Instantiate the class $s3 = new AmazonS3(); $bucket = 'my-bucket' . strtolower($s3->key); $response = $s3->get_website_config($bucket); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/s3.class.php | Toggle source view (12 lines) | View on GitHub