Best way to store an image from a url in php?
<p>I would like to know the best way to save an image from a URL in php.</p>

<p>At the moment I am using </p>

<pre><code>file_put_contents($pk, file_get_contents($PIC_URL));
</code></pre>

<p>which is not ideal. I am unable to use curl. Is there a method specifically for this?</p>
