Skip to content

Instantly share code, notes, and snippets.

@jgornick
Created December 11, 2009 22:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jgornick/254572 to your computer and use it in GitHub Desktop.
ZF: Zend_Uri_S3
S3 URI Scheme:
# Access a private file
s3://{access_key}:{secret_key}@{bucket}/{filename}
# Access a public-read or public-read-write file
s3://{bucket}/{filename}
Notes:
- Zend_Uri_S3 will accept or build a URI as specified above.
- Filename consists of a path and file.extension (path/file.ext)
- Zend_Uri_S3 will have a method to translate the S3 URI scheme to the accepted S3 HTTP scheme (http://docs.amazonwebservices.com/AmazonS3/latest/index.html?RequestEndpoints.html)
- This component could also be used in the S3 services classes when making requests.
Links:
- http://blogs.hoopoe-cloud.com/index.php/2009/10/regular-expression-for-amazon-s3-url/
- http://docs.amazonwebservices.com/AmazonS3/latest/index.html?BucketRestrictions.html
- http://manpages.ubuntu.com/manpages/karmic/en/man1/s3cmd.1.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment