I'm about to integrate Amazon Simple Storage Service (S3) with a php web application that must maintain a lot of office documents and photoshop files.
我即将整合Amazon Simple Storage Service(S3)和一个必须维护大量office文档和photoshop文件的php web应用程序。
Can anyone point me to a brief tutorial on how to do this? There's "too much" documentation on the Amazon website for me to wade through. I learn best by studying and tinkering with code that actually works.
谁能指点我一个关于如何做到这一点的简短教程?亚马逊网站上的“太多”文档供我浏览。通过学习和修补实际工作的代码,我学得最好。
3 个解决方案
#1
5
If you're using Zend, the S3 section has a great tutorial.
如果你正在使用Zend,那么S3部分有一个很棒的教程。
- http://framework.zend.com/manual/en/zend.service.amazon.s3.html
- http://framework.zend.com/manual/en/zend.service.amazon.s3.html
If not, but don't want to roll your own code, try this:
如果没有,但不想滚动自己的代码,请尝试以下方法:
http://undesigned.org.za/2007/10/22/amazon-s3-php-class
http://undesigned.org.za/2007/10/22/amazon-s3-php-class
The basics are pretty ... basic:
基础很漂亮...基本:
$s3 = new S3('accessKey', 'secretKey');
$s3->putBucket('bucket', S3::ACL_PUBLIC_READ);
$s3->putObjectFile('file.doc', 'bucket', 'docs/file.doc', S3::ACL_PUBLIC_READ);
$s3->deleteObject('bucket', 'docs/file.doc');
Or this:
或这个:
https://github.com/tpyo/amazon-s3-php-class
https://github.com/tpyo/amazon-s3-php-class
Which is a great library - I've used it. I prefer it to Zend S3.
这是一个很棒的图书馆 - 我用过它。我更喜欢Zend S3。
#2
2
I would use the official SDK for php from Amazon.
我会使用亚马逊的官方SDK for php。
Start with the Getting Started Guide, and then consult the full library docs as needed.
从“入门指南”开始,然后根据需要查阅完整的库文档。
If you are new to S3, the general getting started guide should be useful in giving a general overview of how the service works.
如果您是S3的新手,一般入门指南应该有助于概述服务的工作原理。
#3
1
This very nice tutorial comes with an added bonus; it links to an already-written library, so you won't have to write all the code yourself.
这个非常好的教程带来额外的奖励;它链接到一个已经编写的库,因此您不必自己编写所有代码。
#1
5
If you're using Zend, the S3 section has a great tutorial.
如果你正在使用Zend,那么S3部分有一个很棒的教程。
- http://framework.zend.com/manual/en/zend.service.amazon.s3.html
- http://framework.zend.com/manual/en/zend.service.amazon.s3.html
If not, but don't want to roll your own code, try this:
如果没有,但不想滚动自己的代码,请尝试以下方法:
http://undesigned.org.za/2007/10/22/amazon-s3-php-class
http://undesigned.org.za/2007/10/22/amazon-s3-php-class
The basics are pretty ... basic:
基础很漂亮...基本:
$s3 = new S3('accessKey', 'secretKey');
$s3->putBucket('bucket', S3::ACL_PUBLIC_READ);
$s3->putObjectFile('file.doc', 'bucket', 'docs/file.doc', S3::ACL_PUBLIC_READ);
$s3->deleteObject('bucket', 'docs/file.doc');
Or this:
或这个:
https://github.com/tpyo/amazon-s3-php-class
https://github.com/tpyo/amazon-s3-php-class
Which is a great library - I've used it. I prefer it to Zend S3.
这是一个很棒的图书馆 - 我用过它。我更喜欢Zend S3。
#2
2
I would use the official SDK for php from Amazon.
我会使用亚马逊的官方SDK for php。
Start with the Getting Started Guide, and then consult the full library docs as needed.
从“入门指南”开始,然后根据需要查阅完整的库文档。
If you are new to S3, the general getting started guide should be useful in giving a general overview of how the service works.
如果您是S3的新手,一般入门指南应该有助于概述服务的工作原理。
#3
1
This very nice tutorial comes with an added bonus; it links to an already-written library, so you won't have to write all the code yourself.
这个非常好的教程带来额外的奖励;它链接到一个已经编写的库,因此您不必自己编写所有代码。