Php question

i’m trying to make a form to upload .jpg files using php

here is what i have:


<form name="form1" method="post" action="" enctype="multipart/form-data"> 
<input type="file" name="imagefile"> 

<input type="submit" name="Submit" value="Submit"> 

<? 
if(isset( $Submit )) 
{ 
//If the Submitbutton was pressed do: 

if ($_FILES['imagefile']['type'] == "image/pjpeg"){ 

copy ($_FILES['imagefile']['tmp_name'], "http://www.falloutbmx.com/upload/".$_FILES['imagefile']['name']) 
    or die ("Could not copy"); 

 echo ""; 
        echo "Name: ".$_FILES['imagefile']['name'].""; 
        echo "Size: ".$_FILES['imagefile']['size'].""; 
        echo "Type: ".$_FILES['imagefile']['type'].""; 
        echo "Copy Done...."; 
        } 

else { 
            echo ""; 
            echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")"; 
        } 
}

?> </form>

when i try to upload a .jpg file i get this error:
Warning: copy(http://www.falloutbmx.com/upload/me3.jpg): failed to open stream: HTTP wrapper does not support writeable connections. in /home/fallout/public_html/upload/upload.php on line 14
Could not copy

I’m new to php…be gentle C:-)