Chilkat HOME Android™ ASP Visual Basic VB.NET C# iOS (IPhone) Objective-C C++ C Unicode C++ Unicode C MFC Delphi DLL Delphi ActiveX FoxPro Java Perl PHP Extension PHP ActiveX Python PowerShell Ruby SQL Server VBScript
|
(PHP Extension) S3 Delete BucketDemonstrates how to delete a bucket.
<?php // The "chilkat_9_3_2.php" is included in the Chilkat PHP Extension download // The version number (9_3_2) should match version of the Chilkat extension used. include("chilkat_9_3_2.php"); $http = new CkHttp(); $success = $http->UnlockComponent('Anything for 30-day trial'); if ($success != true) { print $http->lastErrorText() . "\n"; exit; } // Insert your access key here: $http->put_AwsAccessKey('ABQXXABC83ABCDEFVQXX'); // Insert your secret key here: $http->put_AwsSecretKey('XXXXYYYYabcdABCD12345678xxxxyyyyzzzz'); $success = $http->S3_DeleteBucket('chilkattestbucket'); if ($success != true) { print $http->lastErrorText() . "\n"; } else { print 'Bucket created.' . "\n"; } ?> |
© 2000-2013 Chilkat Software, Inc. All Rights Reserved.