Re: error handling

From: Date: Thu, 15 Feb 2001 02:13:22 +0000
Subject: Re: error handling
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-39796@lists.php.net to get a copy of this message
OK, I tried the @ symbol. It seemed to just disable error checking altogether. I have this in my code that I'd like to use. if (!$php_errormsg) { header("Location: http://www.domain.com/admin/index.php"); } else { header("Location: http://www.domain.com/admin/error.html"); } "CC Zona" <cczona@nospam.invalid> wrote in message news:96fcv5$2o0$1@toye.p.sourceforge.net... > In article <96faad$h9k$1@toye.p.sourceforge.net>, pbrown@sla.com ("Patrick > Brown") wrote: > > > How can I disable the display of error to the browser window from within the > > script? I want to do a redirect based on the error and cannot because header > > info has already been sent. > > Use the "@" sign. Example > > @some_function() > > -- > CC > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#39796) next »