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" <[EMAIL PROTECTED]> wrote in message
96fcv5$2o0$[EMAIL PROTECTED]">news:96fcv5$2o0$[EMAIL PROTECTED]...
> In article <96faad$h9k$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to