I'm building a page to pull some statistics on several (43 actually) mailboxes by connecting to their imap server and requesting the all headers in the inbox (using imap_headers ($mbox)). Though, really, all I'm trying to get is the number of unread/unseen pieces of mail and the date sent of the oldest piece.
The problem is that the imap_headers function seems to timeout on several email user boxes. Always this error is "Fatal Error: Maximum execution time of 120 seconds exceeded."
The first question is how do I handle that error gracefully, and continue on with other operations (like moving on to another page/iteration of the loop)?
Secondly, if anyone has a better way of doing this, Please, I'm begging for suggestions. The Jhereg
=~=~=~=~=~=~=~=~=~=~
I never lie.
I'm building a reputation for honesty so I can blow it when something big comes along... This ain't it.
The problem is that the imap_headers function seems to timeout on several email user boxes. Always this error is "Fatal Error: Maximum execution time of 120 seconds exceeded."
The first question is how do I handle that error gracefully, and continue on with other operations (like moving on to another page/iteration of the loop)?
Secondly, if anyone has a better way of doing this, Please, I'm begging for suggestions. The Jhereg
=~=~=~=~=~=~=~=~=~=~
I never lie.
I'm building a reputation for honesty so I can blow it when something big comes along... This ain't it.