I made a file that is in charge of uploading images, this images are then moved to a folder in the server. I think I can\'t resize the image directly in the $_FILES array so
PHP comes built-in with the GD library.
There are many functions available for manipulating images however there's no need to re-invent the wheel.
Check out this gist for a simple image manipulation class - https://gist.github.com/880506
Here's an example usage...
$im = new ImageManipulator($_FILES['field_name']['tmp_name']);
$im->resample(640, 480); // resize to 640x480
$im->save('/path/to/destination/image.jpg', IMAGETYPE_JPEG);