Re: [PHP4BETA] How to handle Oracle Error Messsages?

From: Date: Thu, 02 Mar 2000 18:10:46 +0000
Subject: Re: [PHP4BETA] How to handle Oracle Error Messsages?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-11401@lists.php.net to get a copy of this message
Hello David, On 01-Mar-00 18:23:54, you wrote: >I saw OCIError(), and I am checking the return values on my OCI* calls, >but I think what is happening is that the oracle error text message gets >sent to standard output (the web page) before the offending OCI call >returns. Those are not errors, just PHP warnings. You may silence them either by lowering the error_reporting option in php.ini or by preceeding the name of function that issues the error by a @ character like this: $connection=@OCIPLogon(... >Am I missing something about how OCIError() works? Nah, PHP inherited some of the cryptic programming style from Perl. Without reading throroughly the documentation or asking here as you did, you are not expected to guess unless you are a experienced Perl programmer. Regards, Manuel Lemos Web Programming Components using PHP Classes. Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org -- E-mail: mlemos@acm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --

« previous php.version4 (#11401) next »