|
Posted by Nigel on March 14, 2009, 9:32 pm
Please log in for more thread options
Hi all,
I'm sure this is glaringly obvious to those in the know, but my
efforts to find the answer have failed.
My problem is with the message that is displayed in a web browser when
a script fails compilation. At the moment I'm getting this:
For help, please send mail to the webmaster ([no address given]),
giving this error message and the time and date of the error.
At least, I'd like to know how to set the email address for the
webmaster instead of no address given.
Ideally I'd like to handle the failed compilation in some way that
would allow me to display a friendly page to my visitor and send me an
email to alert me to the problem.
Has anyone got any ideas? Apart that is from not uploading scripts
that don't compile! ;-)
Thanks in advance,
Nigel
|
|
Posted by A. Sinan Unur on March 14, 2009, 9:37 pm
Please log in for more thread options
bcb571f7678a@w34g2000yqm.googlegroups.com:
show/hide quoted text
> Ideally I'd like to handle the failed compilation in some way that
> would allow me to display a friendly page to my visitor and send me an
> email to alert me to the problem.
>
> Has anyone got any ideas?
Maybe you should read the documentation for the HTTP server you are using.
Sinan
--
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/
|
|
Posted by Gunnar Hjalmarsson on March 15, 2009, 3:37 am
Please log in for more thread options Nigel wrote:
show/hide quoted text
> My problem is with the message that is displayed in a web browser when
> a script fails compilation. At the moment I'm getting this:
>
> For help, please send mail to the webmaster ([no address given]),
> giving this error message and the time and date of the error.
>
> At least, I'd like to know how to set the email address for the
> webmaster instead of no address given.
>
> Ideally I'd like to handle the failed compilation in some way that
> would allow me to display a friendly page to my visitor and send me an
> email to alert me to the problem.
>
> Has anyone got any ideas? Apart that is from not uploading scripts
> that don't compile! ;-)
Assuming Apache, this might be helpful:
http://httpd.apache.org/docs/2.0/mod/core.html#errordocument
Redirect to another script (that compiles...) and have it both send an
email alert to you and print a friendly message.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
|
|
Posted by Krishna Chaitanya on March 15, 2009, 2:59 pm
Please log in for more thread options Hi, I don't know if this is going to help you....but read up on
fatalsToBrowser ...
|
|
Posted by Gunnar Hjalmarsson on March 15, 2009, 3:36 pm
Please log in for more thread options Krishna Chaitanya wrote:
show/hide quoted text
> Hi, I don't know if this is going to help you....but read up on
> fatalsToBrowser ...
That feature
1) might reveal sensitive information,
2) does typically not display "a friendly page" to a visitor, and
3) does not alert the script author if the error happens when a visitor
uses the script.
In short, it's not what the OP asked for.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
|
| Similar Threads | Posted | | Perl script as Windows service fails to run | April 14, 2006, 4:55 pm |
| Perl script fails silently at start, can't debug | March 7, 2007, 5:43 pm |
| Perl Packager, pp, compilation | November 14, 2006, 10:45 am |
| Compilation Problem with Perl ( Bad option) | September 9, 2005, 12:20 am |
| FAQ 3.31: When I tried to run my script, I got this message. What does it mean? | November 21, 2004, 6:03 pm |
| FAQ 3.31 When I tried to run my script, I got this message. What does it mean? | February 10, 2005, 12:03 am |
| FAQ 3.30 When I tried to run my script, I got this message. What does it mean? | April 11, 2005, 11:03 pm |
| FAQ 3.30 When I tried to run my script, I got this message. What does it mean? | June 27, 2005, 5:03 am |
| FAQ 3.30 When I tried to run my script, I got this message. What does it mean? | August 19, 2005, 10:03 pm |
| FAQ 3.30 When I tried to run my script, I got this message. What does it mean? | November 13, 2005, 5:03 pm |
|
> would allow me to display a friendly page to my visitor and send me an
> email to alert me to the problem.
>
> Has anyone got any ideas?