RE: [PHP] Handling Errors Gracefully

2002-11-10 Thread John W. Holmes
mail.com] > Sent: Saturday, November 09, 2002 5:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Handling Errors Gracefully > > Is there any way to gracefully handle errors that happen after output to > the > screen has begun (the point where header(Location:) doesn't work)

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Marco Tabini
imho there are many problems with a handler of this type... since an error could occur anywhere--in the middle of an HTML tag, or within a block of client-side script code--you don't know for sure that the Javascript is going to be interpreted properly by the browser...and therefore it may look mes

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Ernest E Vogelsinger
Ok, it's late, and my last post for today, but I need to get this right ;-) ', 'document.location.href="', $url, '">', '', '', 'A nasty error has occurred. If you are not redirected ', 'to the correct page, click here to', 'co

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Ernest E Vogelsinger
At 23:57 09.11.2002, Ernest E Vogelsinger said: [snip] >if ($we_found_an_error) { >$url = 'http://' . $_SERVER['SERVER_NAME'] . > '/my_error_handler.php?any_parameters_you_need'; >echo '', > 'document.location.href="'

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Ernest E Vogelsinger
At 23:42 09.11.2002, Monty said: [snip] >Is there any way to gracefully handle errors that happen after output to the >screen has begun (the point where header(Location:) doesn't work) without >using ob_ functions? > >I have a separate PHP page I'd like to di

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Marco Tabini
I think the only way to do it the way you want to do it is through buffering (with the ob_functions or via the php.ini file). Turning off error printing is another possibility--that way you can have the errors logged to a file rather than to the screen. Marco -- php|architect - The

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Rasmus Lerdorf
Just turn off display_errors in your php.ini file On Sat, 9 Nov 2002, Monty wrote: > Is there any way to gracefully handle errors that happen after output to the > screen has begun (the point where header(Location:) doesn't work) without > using ob_ functions? > > I have a separate PHP page I'd l

[PHP] Handling Errors Gracefully

2002-11-09 Thread Monty
Is there any way to gracefully handle errors that happen after output to the screen has begun (the point where header(Location:) doesn't work) without using ob_ functions? I have a separate PHP page I'd like to display with the error if one happens using the error_handler() and trigger_error() fun

Re: [PHP] handling errors

2001-09-27 Thread
> According to my docs (08 Sep 2001) it can. > And http://php.net/getimagesize says the same.. Okay! I never use the function. Yesterday that was a "conversation" on this list in which they/he/she said it couldn't. But indeed if it can there would be a reason to use @. ... I've now made some te

Re: [PHP] handling errors

2001-09-27 Thread Christian Reiniger
On Thursday 27 September 2001 12:00, * R&zE: wrote: > > Right in principle. But there are cases (common ones), like the one > > shown above, where errors are unavoidable and normal. For these cases > > the @ operator is the right thing. Generally you're right though - > > error reporting should be

Re: [PHP] handling errors

2001-09-27 Thread
> Right in principle. But there are cases (common ones), like the one shown > above, where errors are unavoidable and normal. For these cases the @ > operator is the right thing. Generally you're right though - error > reporting should be set to E_ALL and reasons of avoidable errors/warnings >

Re: [PHP] handling errors

2001-09-27 Thread Christian Reiniger
On Thursday 27 September 2001 09:09, * R&zE: wrote: > > How do I turn off the error messages that appear at the top of the > > page? I have this function below that if an image is not there for > > $url, it give a "warning". > > > > $size = GetImageSize("$url"); > > > > Example error message bel

Re: [PHP] handling errors

2001-09-27 Thread Jason G.
&zE: wrote: > >From: Jason G. <[EMAIL PROTECTED]> >Date: Thu, Sep 27, 2001 at 03:25:16AM -0400 >Message-ID: <[EMAIL PROTECTED]> >Subject: Re: [PHP] handling errors > > > Placing an @ symbol before the function name will suppress any errors. > > @GetI

Re: [PHP] handling errors

2001-09-26 Thread
From: Jason G. <[EMAIL PROTECTED]> Date: Thu, Sep 27, 2001 at 03:25:16AM -0400 Message-ID: <[EMAIL PROTECTED]> Subject: Re: [PHP] handling errors > Placing an @ symbol before the function name will suppress any errors. > @GetImageSize() Yep, I know it does. Yet, it'

Re: [PHP] handling errors

2001-09-26 Thread Jason G.
Placing an @ symbol before the function name will suppress any errors. @GetImageSize() At 09:09 AM 9/27/2001 +0200, * R&zE: wrote: > >From: Joseph Bannon <[EMAIL PROTECTED]> >Date: Wed, Sep 26, 2001 at 11:09:39AM -0500 >Message-ID: ><[EMAIL PROTECTED]> >Subjec

Re: [PHP] handling errors

2001-09-26 Thread
From: Joseph Bannon <[EMAIL PROTECTED]> Date: Wed, Sep 26, 2001 at 11:09:39AM -0500 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] handling errors > How do I turn off the error messages that appear at the top of the page? I > have this function below that if an image is not

RE: [PHP] handling errors

2001-09-26 Thread Boget, Chris
> How do I turn off the error messages that appear at the top > of the page? I have this function below that if an image is > not there for $url, it give a "warning". > $size = GetImageSize("$url"); > Example error message below... > Warning: getimagesize: Unable to open 'http://www.yahoo.com'

[PHP] handling errors

2001-09-26 Thread Joseph Bannon
How do I turn off the error messages that appear at the top of the page? I have this function below that if an image is not there for $url, it give a "warning". $size = GetImageSize("$url"); Example error message below... Warning: getimagesize: Unable to open 'http://www.yahoo.com' for readi