Uploading Image Files



I'm using a form to upload image files from the users computer to a web server. I'm a little confuse though. I believe I can use the copy function but I dont not know what I need to put in the destination path name. For example...

Let's just say my webspace server is http://www.Grigory.com

In the destination path name would I put "www.grigory.com/$image"???
or put "http://www.grigory.com/$image"
or maybe "ftp://www.grigory.com/$image"

If you were to just use say "images/$image" would that upload it from the directory that this php script is in?

I hope someone can shed some light on this for me
For upload images or other you must:

create upload form
<form method=post action='upload.php' ENCTYPE='multipart/form-data' >
<input type='file' name=uptmp value='UPLOAD'>
<input type='submit' name='submitButtonName' value='SAVE'>
after in upload.php use $uptmp for get place where server copy data
and copy it where you need

$uptmp - path and filename on server
$uptmp_name - original filename
copy($uptmp, "images/".$uptmp_name);