Why don't you just monitor the logs for errors?
There are many tools to do such a thing, monit for example.

--
François Rejeté
www.macbidouille.com

On 9/14/07, Michal Taborsky - Internet Mall <michal.taborsky@mall.cz> wrote:
Dean Maunder wrote:
> I was wondering if anyone had tried to do anything dynamic with the
> Err500 etc returns.  What we would like to do is be able to send an
> email to support if one of the errors occurs, eg via a php script.  It
> seems that pound just sends back the text, so then we would have to use
> a redirect to send the user to a php page that would handle the mailing
> etc.  Is it possible to do this any other way?

You don't need to redirect. You can include a 1x1 pixel image generated
by a php script in the Err500 HTML. Something like:
<img src='http://failsafe.domain.com/img.php?e=It+is+broken ' />. Or some
fancy javascript/AJAX stuff.

But! Are you sure you really want that? I mean, if your web serves some
interesting amount of traffic (which is likely, if you need pound),
then, in case things go south, you'll be receiving few hundred e-mails a
second. So you'll have broken web AND flooded e-mail server.

--
Michal Táborský
chief systems architect
Internet Mall, a.s.
<http://www.MALL.cz>

--
To unsubscribe send an email with subject unsubscribe to pound@apsis.ch.
Please contact roseg@apsis.ch for questions.