title: PHP upload an image file through url
body: <p>I wanna upload an image by url like</p>
  
  <pre><code>'C:\wamp\www\reelstubs\app\webroot\img\movies\0bf522bb76777ba43393b9be5552b263.jpg'
  </code></pre>
  
  <p>But I want an array like </p>
  
  <pre><code>array(
     'name' =&gt; '',
     'type' =&gt; '',
     'tmp_name' =&gt; '',
     'error' =&gt; (int) 4,
     'size' =&gt; (int) 0
  ),
  </code></pre>
  
  <p>Please suggest me how to get that?.</p>