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.
I don't think you can catch this error, as it is a fatal error. Moreover, if you are running out of memory, PHP will not have any more memory to use to actually deal with the error with an error handler. See here.Reply
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