I\'m writing the code for a website right now that\'s uploads images and then displays them gallery style. What I would like to happen is for the file name of the image to b
Just use preg_replace:
$name = preg_replace('/(.+)\.\w+$/U', $_FILES['images']['name'], '$1');