Hi,
THis is what I do for an upload where I can expect similar filenames, mulitple files of same user and option to show users the old filename:
(In thi scase abstracts for an symposium)
$time = time();
$old_name = $_FILES[file][name];
$file_name = $_FILES[file][tmp_name];
$file_size = $_FILES[file][size];
$justfile = $_SESSION[name].$_SESSION[user_extra]."_".$time."_".$_FILES[file][name];
$newfile = $absolute_path.'/'.$justfile;
So it basically creates a string of userdetails, current time, oldfilename and uses that to store the file.
I then place that into the database with abstracts, since they have to fill out some other details of the abstract to (authors, title, keywords). Then you can just get the file, and slite the string into insertdate and oldname.
You could even get the files without storing the filename, by searching for the username in the directory.
J.