when you upload a file, you are given an array $_FILES with an index matching the name of the file upload control in the form, lets call this userfile
this has two items related to file names - name and tmp_name
$_FILES['userfile']['name']; //gives the original name, as it was on the client machine
$_FILES['userfile']['tmp_name']; //gives the temporary name, ie the name of the file stored on the server
see http://uk2.php.net/features.file-upload, and next time have a look at the manual or search here on phpbuilder before posting
adam