class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Not exactly sure what your question is... But after you called $foo->process(), you can read $foo->file_dst_pathname or $foo->file_dst_name to get the location of the processed file.Reply
thanks!