Failed to open stream: HTTP Cover does not support connection records when uploading to Amazon EC2
I am using Amazon EC2 server for hosting.
I faced one problem: -i should copy one file from my server to amazon bucket
for this i use
$ 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);
But getting error
failed to open stream: HTTP wrapper does not support writeable connections
Can anyone suggest a fix for this issue?
+3
source to share
1 answer
You need to use thread wrappers.
https://forums.aws.amazon.com/thread.jspa?messageID=283440
hope this link helps.
0
source to share