I have set up a cgi script that will display an error message and 
send an email to the administrator and placed that into the 
httpd.conf file via

ErrorDocument 500 /cgi-bin/bad.pl

I have about 30 different "Apps" that are native mod perl modules 
(written from scratch, not cgi converts).  When one of these apps 
dies unexpectedly, it usually calls the bad.pl script and everything 
works the way it should.  But about 10 percent of the time, apache 
sends the error to standard out, so the the browser sees something 
like:

SQL Failure: SELECT * from all_tables: ORA-XXXXX: Some Obscure SQL Error

No where in any of my code do I print a header until I'm finally 
ready to print every thing at once to the browser, so I shouldn't 
have sent any headers at the time the error occured.  I also never 
print the errors.  What could cause apache to send error messages to 
the browser rather than redirect to the bad.pl script?

Thanks,

Robert Landrum

--
Warning: The contents of this message are made of bits which may or may not
be an accurate representation of my thoughts.

Reply via email to