Skip to content

Commit

Permalink
More updates for 0.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tpyo committed Jul 20, 2009
1 parent 0f9f08f commit 5bdc4bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.txt
Expand Up @@ -45,7 +45,7 @@ Save an object to a resource of any type:


Copy an object:
$s3->copyObject($srcBucket, $srcName, $bucketName, $saveName)
$s3->copyObject($srcBucket, $srcName, $bucketName, $saveName, $metaHeaders = array(), $requestHeaders = array())


Delete an object:
Expand Down
9 changes: 9 additions & 0 deletions example-form.php
Expand Up @@ -11,6 +11,15 @@
if (!defined('awsAccessKey')) define('awsAccessKey', 'change-this');
if (!defined('awsSecretKey')) define('awsSecretKey', 'change-this');

// Check for CURL
if (!extension_loaded('curl') && !@dl(PHP_SHLIB_SUFFIX == 'so' ? 'curl.so' : 'php_curl.dll'))
exit("\nERROR: CURL extension not loaded\n\n");

// Pointless without your keys!
if (awsAccessKey == 'change-this' || awsSecretKey == 'change-this')
exit("\nERROR: AWS access information required\n\nPlease edit the following lines in this file:\n\n".
"define('awsAccessKey', 'change-me');\ndefine('awsSecretKey', 'change-me');\n\n");


S3::setAuth(awsAccessKey, awsSecretKey);

Expand Down

0 comments on commit 5bdc4bb

Please sign in to comment.