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.
more info about the class
When I transfer this over to a shared hosting, I might not be able to change it.
If the hosting doesn't allow the additional memory, is there any way to exit the script without a fatal error.
Where I am using this code, it is necessary to be able to exit in a normal fashion in the case of an error.
Thanks for your help