RE: [PHP-DB] PHP Warning messages

From: Date: Fri, 04 Aug 2000 12:42:03 +0000
Subject: RE: [PHP-DB] PHP Warning messages
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1788@lists.php.net to get a copy of this message
You can use the error_reporting() function at the top of your php file. You can call error_reporting with a value ranging from 0-15 where 15 gives you all warning/error messages and 0 will give you hardly anything at all. You can call it like this: error_reporting(5) ; error_reporting(15); etc This way you don't have to use the @ sign to suppress errors on a line by line basis. HTH Sam Masiello System Analyst Chek.Com (716) 853-1362 x289 smasiello@chekinc.com -----Original Message----- From: David Newcomb [mailto:davidn@vnvi.com] Sent: Friday, August 04, 2000 8:02 AM To: php-db Subject: [PHP-DB] PHP Warning messages Hi all, When writing PHP one prefixes '@' to command name in order to block warnings. Is there an option to turn warnings this on and off so that I don't have to do: if ($debug==1) { $result = OCIExicute(blar); } else { $result = @OCIExicute(blar); } Any ideas? Cheers, David.

« previous php.db (#1788) next »