title: How to copy an image from one folder to another using php
body: <p>I'm having difficulty in copying an image from one folder to another, now i have seen many articles and questions regarding this, none of them makes sense or work, i have also used copy function but its giving me an error. " failed to open stream: No such file or directory" i think the copy function is only for files. The image i wanna copy is present in the root directory. Can anybody help me please. What i am doing wrong here or is there any other way???</p>
  
  <pre><code>&lt;?php
  $pic="somepic.jpg";
  copy($pic,'test/Uploads');
  ?&gt;
  </code></pre>