I\'m using PHP to upload an image from a form to the server and want to rename the image lastname_firstname.[original extension]. I currently have:
move_upl
you could always:
$original = explode('.', $_FILES["picture"]["tmp_name"]); $extension = array_pop($original); move_uploaded_file($_FILES["picture"]["tmp_name"], "peopleimages/" . "$_POST[lastname]" . '_' . "$_POST[firstname]". $extension);