If I am understanding you correctly, then you are trying to upload an image from a users machine (i.e. my desktop which I am typing this on) to your server via a web script.
Your problem at the moment is that you are trying to use the copy file which is never gonna happen because the server has no idea about my operating system, or directory structure etc (and so it shouldn't, because that would be a massive security problem!)
The way to do what you are doing is to provide the user with an HTML page. I am not going to go over the whole orcess on here, because there are invariably tutorials on this site whoich can help you. But... an overview would be: -
Standard HTML objects allow you to define an input type of "form" on a web page. This allows a user to browse for a file on their machine, click a "submit" button (also placed by you on the page), and that file will get uploaded to a temporary directory on your server (the location of which is defined in your php.ini file).
Using PHP, you can then copy this file to wherever you wish, and do with it as you please 🙂