Hi cjason406
If you want to rename only filename, it's very easy.
you can change value of $targetFile variable to new values.
for example:
$targetFile = str_replace('//','/',$targetPath) . 'yourname'.'jpg';
or
you can rewrite move_uploaded_file syntax
$path="../images/profile/";
$tagetName=$username;
$extention=$fileParts['extension'];
move_uploaded_file($tempFile,$paht.$tagetName.$extention);