RE: [PHP] Oracle error messages
| From: | Rudolf Visagie | Date: | Tue, 13 Mar 2001 15:47:48 +0000 |
| Subject: | RE: [PHP] Oracle error messages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43674@lists.php.net to get a copy of this message | ||
Thanks guys,
In the meantime I also discovered that setting the error reporting level
works, e.g. in
// redefine the user error constants
define (FATAL,E_USER_ERROR);
define (ERROR,E_USER_WARNING);
define (WARNING,E_USER_NOTICE);
// set the error reporting level for this script
error_reporting (FATAL | ERROR | WARNING);
the errors are not displayed and can be handled with my own error handler.
The user errors would be PHP generated errors and any other errors (in other
words not FATAL, ERROR or WARNING) are Oracle database errors.
Rudolf Visagie
rudolf@qedi.co.za
-----Original Message-----
From: Greig, Euan [mailto:Euan.Greig@brann.com]
Sent: 13 March 2001 04:25
To: Hardy Merrill; Rudolf Visagie
Cc: php-general@lists.php.net
Subject: RE: [PHP] Oracle error messages
To suppress the error messages on a single command, you can put an @ in
front of it, eg:
@$conn=ora_plogon(...
-----Original Message-----
From: Hardy Merrill [mailto:merrill@missioncriticallinux.com]
Sent: 13 March 2001 13:43
To: Rudolf Visagie
Cc: php-general@lists.php.net
Subject: Re: [PHP] Oracle error messages
Rudolf Visagie [Rudolf@qedi.co.za] wrote:
> Hi All,
>
> Does anybody have an idea how to stop the automatic error and warning
> messages from the Oracle data base being displayed on the screen. I want
to
> do my own error message display but by the time I get the error message
> using OCIError it was already displayed on the screen anyway.
In your php.ini file, you want to set "display_errors = Off", and
"log_errors = On".
>
> Rudolf Visagie
> rudolf@qedi.co.za
>
>
> --
> 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
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
**************************************************************************
Any opinions expressed in this email are those of the individual and
not necessarily the Company. This email and any files transmitted with
it, including replies and forwarded copies (which may contain alterations)
subsequently transmitted from the Company, are confidential and solely for
the use of the intended recipient. If you are not the intended recipient
or the person responsible for delivering to the intended recipient, be
advised that you have received this email in error and that any use is
strictly prohibited.
**************************************************************************