Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More updates for 0.4.0 release

  • Loading branch information...
commit 5bdc4bb0636aa085ad1b55333422d1fb6319fde4 1 parent 0f9f08f
Donovan Schönknecht authored
Showing with 10 additions and 1 deletion.
  1. +1 −1  README.txt
  2. +9 −0 example-form.php
2  README.txt
View
@@ -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:
9 example-form.php
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.