by uploadin, php puts the image into the tmp directory where it remains till the script ends. So to save your image data, u MUST use move_uploaded_file() in order to move the temporary file to some directory, i.e. your webpages graphics directory... use something like this:
<?php
// In PHP earlier then 4.1.0, $HTTP_POST_FILES should be used instead of $_FILES.
// In PHP earlier then 4.0.3, use copy() and is_uploaded_file() instead of move_uploaded_file
$uploaddir = '/var/www/uploads/';
print "<pre>";
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $_FILES['userfile']['name'])) {
print "File is valid, and was successfully uploaded. debugging info:\n";
print_r($_FILES);
} else {
print "Possible file upload attack! debugging info:\n";
print_r($_FILES);
}
?>
(this is from http://de2.php.net/manual/en/features.file-upload.php), so check out this manual page, there's everything u need.
However, the code given above should work when u set $uploaddir to the path where u wanna store your images.
hth