title: failed to open stream: HTTP wrapper does not support writeable connections while upload on amazon EC2
body: <p>i am using the amazon EC2 server for hosting..</p>
  
  <p>I have faced one problem :-i have to copy one file from my server to amazon bucket  </p>
  
  <p>for that i am using</p>
  
  <p>$str = file_get_contents('<a href="http://www.custmore.com/dev/usercontent/userphoto/user_photo_1358927451.jpg" rel="nofollow">http://www.custmore.com/dev/usercontent/userphoto/user_photo_1358927451.jpg</a>');</p>
  
  <p>file_put_contents"(<a href="http://s3.amazonaws.com/custmorebuck/test" rel="nofollow">http://s3.amazonaws.com/custmorebuck/test</a>", $str);</p>
  
  <p>But getting error</p>
  
  <p>failed to open stream: HTTP wrapper does not support writeable connections</p>
  
  <p>Can anyone suggest to fix this issue</p>