okay, i'm kind of stuck on this one, how would I go about in renaming uploaded files to their titles, for instance, a user submits 2 variables, file, and title,
so I want to copy the file so that it's now the title's name, plus file type
$title2="$title.$extention";
if(!copy ($file, "$title2")) echo "Error";
so, i need the code to detect what kind of it is and give it the corresponding extention. I'm thinking about arrays but it doesnt seem to be working for me