RE: Producing an error page

2000-08-23 Thread Perrin Harkins
On Tue, 22 Aug 2000, Howard Jones wrote: > Something that may be worthwhile as a starting point for you is CGI::Debug There is an Apache::Debug in the standard distribution. If you turn on the debugging flag in Apache::Registry, it looks like it will send the errors to the client using this mod

Re: Producing an error page

2000-08-23 Thread Nathan Vonnahme
> -Original Message- > From: Jay Strauss [mailto:[EMAIL PROTECTED]] > > I've tried the suggestions so far: > > cgi::carp > http://perl.apache.org/guide/snippets.html#Redirecting_Errors_to_t > he_Client > BEGIN { print "Content-Type: text/plain\n\n"; *STDERR = *STDOUT } Jay, Below is a m

RE: Producing an error page

2000-08-22 Thread Howard Jones
ilto:[EMAIL PROTECTED]] > Sent: 21 August 2000 16:44 > To: [EMAIL PROTECTED] > Subject: Re: Producing an error page > > > Sorry, > > I didn't explain my question well. But thanks for all the response. > > I left "my" out of my example on purpose, to illus

Re: Producing an error page

2000-08-21 Thread ___cliff rayman___
i may be coming in late here, so forgive me if this has been mentioned: use CGI::Carp qw(fatalsToBrowser); not sure if everything you want will be sent to the browser, but it is better than a standard 500 error, and you can read the errors from the log easier. -- ___cliff [EMAIL PROTECTED]http:/

Re: Producing an error page

2000-08-21 Thread George Sanderson
At first, when I read the first message, I said to myself; (self) Why would anyone want an error page with all the Perl HTML STDOUT/STDOUT stuff mixed up together? However, after reading and thinking some more, . . . (just from a conceptional point of view and not from an implementation view poin

Re: Producing an error page

2000-08-21 Thread Rob Tanner
The stuff that the server sends back comes from STDOUT if CGIs or within mod-perl, either $req->print or a regular print since it is tied. The error messages go to STDERR which apache redirects internalls so that the messages go to the error log. I don't know that it's possible and I'm certa

Re: Producing an error page

2000-08-21 Thread Jay Strauss
PROTECTED] (h) 773.935.5326 (c) 312.617.0264 - Original Message - From: "Jay Strauss" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 21, 2000 8:56 AM Subject: Producing an error page > > Hi, > > I'm asking this again, due to lack o

RE: Producing an error page

2000-08-21 Thread Shimon Rura
Jay, although others have recommended you look at the mod_perl guide and CGI::Carp, I don't think these are exactly what you're looking for. The errors you are getting are generated because of 'use strict;' and occur at compile time; CGI::Carp is capable of redirecting errors to the browser (if y

Re: Producing an error page

2000-08-21 Thread Flemming Mahler Larsen
On Mon, 21 Aug 2000, Jay Strauss wrote: > --- > #!/usr/bin/perl -w > > use strict; > use diagnostics; Try adding: use CGI::Carp; # send error messages to browser > > ($first, $second) = @ARGV; Try: my ($first, $second) = @ARGV; You may also want to check "my" in a Perl book, just so you

Re: Producing an error page

2000-08-21 Thread Tim Sweetman
Have a look at CGI::Carp. Jay Strauss wrote: > > Hi, > > I'm asking this again, due to lack of response (but I can't believe no one out > there knows how to do this). > > How do I produce an error page (in HTML), when I call the script from a browser, > that looks just like the error screen I

RE: Producing an error page

2000-08-21 Thread Geoffrey Young
http://perl.apache.org/guide/snippets.html#Redirecting_Errors_to_the_Client HTH --Geoff > -Original Message- > From: Jay Strauss [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 21, 2000 9:56 AM > To: [EMAIL PROTECTED] > Subject: Producing an error page > >

Producing an error page

2000-08-21 Thread Jay Strauss
Hi, I'm asking this again, due to lack of response (but I can't believe no one out there knows how to do this). How do I produce an error page (in HTML), when I call the script from a browser, that looks just like the error screen I get when I run a script at the command line? That is, if I run