【发布时间】:2013-01-13 22:16:31
【问题描述】:
我正在使用亚马逊 EC2 服务器进行托管..
我遇到了一个问题:-我必须将一个文件从我的服务器复制到亚马逊存储桶
为此我正在使用
$str = file_get_contents('http://www.custmore.com/dev/usercontent/userphoto/user_photo_1358927451.jpg');
file_put_contents"(http://s3.amazonaws.com/custmorebuck/test", $str);
但出现错误
打开流失败:HTTP wrapper 不支持可写连接
谁能建议解决这个问题
【问题讨论】:
标签: php amazon-ec2