Hey,
I've created a site that polls several imap user's mailboxes to get statistics on the number of pieces of mail contained within each.
The problem I'm running into is that occasionally the max execution time is exceeded when I use imap_headers(). I've already increased the value of max_execution_time value to 120, and cannot go above that limit.
What I'm trying is to build my own error handling function to capture this error, and move on to another page.
I've built a generic funciton that captures the E_ERROR code (using set_error_handler()) but the error is still generated on the line that uses imap_headers, and also on the line where my myErrorHandler is specified.
Is it possible to respond gracefully to an execution time exceeded error?