Sets the virtual host to use in place of the default bucket.s3.amazonaws.com domain.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Required |
The virtual host to use in place of the default |
Returns
Type |
Description |
|---|---|
|
A reference to the current instance. |
Examples
Configure a virtual host to use for requests.
// Instantiate the class
$s3 = new AmazonS3();
$s3->set_vhost('cname.example.com');
$response = $s3->list_buckets();
// Success?
var_dump($response->isOK());
Result:
bool(true)
See Also
Source
Method defined in services/s3.class.php | Toggle source view (5 lines) | View on GitHub

