PHP - Copy image to my server direct from URL
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/724391/save-image-from-php-url-using-php">save image from php url using php</a>  </p>
</blockquote>



<p>I want to have PHP code for following.</p>

<p>Suppose I have one image URL, for example, <a href="http://www.google.co.in/intl/en_com/images/srpr/logo1w.png" rel="nofollow">http://www.google.co.in/intl/en_com/images/srpr/logo1w.png</a></p>

<p>If I run one script, this image will be copied and put on my server within folder having 777 rights.</p>

<p>Is it possible? If yea, can you please give direction for same?</p>

<p>Thanks,</p>

<p>Ian</p>
