Permalink
Browse files

More updates for 0.4.0 release

  • Loading branch information...
1 parent 0f9f08f commit 5bdc4bb0636aa085ad1b55333422d1fb6319fde4 @tpyo committed Jul 20, 2009
Showing with 10 additions and 1 deletion.
  1. +1 −1 README.txt
  2. +9 −0 example-form.php
View
2 README.txt
@@ -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:
View
9 example-form.php
@@ -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);

0 comments on commit 5bdc4bb

Please sign in to comment.