it dosn't work with
$FILES["img1"]["tmp_name"] should be $FILES['img1']['tmp_name'] when you're not using it inside double quotes, same with all the other vars in your example
I got this from the book PHP Fast& easy web development
<?
if ($_FILES[img1] != "") {
@copy($_FILES[img1][tmp_name],"/usr/local/bin/apache_1.3.26/htdocs/".$_FILES[img1][name]) or die("Couldn't copy the file.");
} else {
die("No input file specified");
}
?>
<HTML>
<HEAD>
<TITLE>Successful File Upload</TITLE>
</HEAD>
<BODY>
<H1>Success!</H1>
<P>You sent:<? echo $FILES[img1][name]; ?>, a <? echo $FILES[img1][size]; ?> byte file with a mime type of <? echo $_FILES[img1][type]; ?>.</P>
</BODY>
</HTML>