Funny the answer to your question is in a thread you started ...
As Habibi said:
Some of nice things on PHP is you can retrieve various info from uploaded file like followings :
$thefile_name --> returns uploaded file name
$thefile_size --> returns uploaded file size
$thefile_type --> returns uploaded file type, this is much more like MIME-type
What if we want to name the file on the server like the file that was uploaded ?? The filename is in $thefile_name ...
rename($thefile, $thefile_name);
if you have more questions concerning this subject, I really suggest you read this column by Darren Beale: http://www.phpbuilder.com/columns/bealers20000904.php3
cya Rob