Is there a way to capture when memory_limit has been exceeded? I have an app that generates images and will sometimes run out of memory. I just want to be able to capture this and generate an appropriate error message.
Don't know if u can capture it, but this may help u memory_get_usage, u may take a look in here set_error_handler, trigger_error and some other useful function u will find reference on the links I just gave u ...