0

I have a PHP application which takes inputs from users and writes them to files using normal file operations like fopen, fwrite etc. It works well on my server. If I migrate this whole code to Amazon's Cloud and use it's services, how do I map these file operations to corresponding operations on Beanstalk?

Will the file operations work as they are, without change?
If yes, where will these files be store?
If no, what's the alternative?

Thanks for your help!!

4

2 回答 2

5

您应该考虑查看官方AWS SDK for PHP中包含的S3 Stream Wrapper。注册流包装器允许您使用 PHP 的本机文件函数使用 S3。

于 2013-04-29T16:57:53.450 回答
-1

您可以将 S3 存储桶挂载为分区并使用位于服务器硬盘上的 S3 文件。

我是开源项目 RioFS 项目的主要开发人员和维护人员:一个用于挂载 Amazon S3 存储桶的用户空间文件系统。您可以使用我们的项目来挂载和操作使用 PHP 或任何其他编程语言的文件。

希望能帮助到你 !

于 2013-04-28T13:46:42.550 回答