What do you actually want to achieve? - its not clear from your post. To get the user uploading a file and handling it, have some html
<form action="myaction.php" method="POST">
<input type="file" name"userfile">
</form>
Now have a file (myaction.php) which is similar to
<?php
$tmp_name = $_FILES["userfile"]["tmp_name"];
$name = $_FILES["userfile"]["name"];
move_uploaded_file($tmp_name, "data/$name");
?>
This will copy the file from its temp name (as on the server) into data/file name.
For more information, look at
http://uk3.php.net/manual/en/features.file-upload.post-method.phpOf course, you could also open the temp file and look at its contents or what ever you wanted