Actually I don't mind what file extension they send, I just want to preserve it when renaming. I managed to do this as follows:
$fname = './'.$manuscript_name; #make the filename
ereg("....", $manuscript_name, $suffixes); #find the suffix (following the dot) for the filename and place it in the array $suffixes
$suffix = $suffixes[0]; #get the suffix from the array
$newname = gmdate("Y m d") . "$suffix"; #create a new numerical filename by concatenating the date and the original suffix
I am curious actually about the method you mentioned, I don't understand it really :P
But I am a real novice. I will look it up to try to see what you were doing with that
Thanks!
Sam Mercer