[PHP] Error disabling
I need to be able to disable error reporting on one page with php, I just dont remember how to do this, if I remember correctly I could call some function in the begining of a php doc and tell it not to disply any errors that occur while parsing the doc.
Re: [PHP] Error disabling
A quickie woudl be put an before every function that would report an error like mysql_query etc John On Friday 04 Oct 2002 11:51 am, Davíð Örn Jóhannsson wrote: I need to be able to disable error reporting on one page with php, I just dont remember how to do this, if I remember correctly I could call some function in the begining of a php doc and tell it not to disply any errors that occur while parsing the doc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error disabling
Error Reporting : php.net/error_reporting looks like this: error_reporting(0); // for outputting nothing error_reporting(55); // PHP4's default error_reporting(E_ALL | E_NOTICE); // for anything PHP can complain of Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins On Fri, 4 Oct 2002 10:51:01 - Davíð Örn Jóhannsson [EMAIL PROTECTED] wrote: I need to be able to disable error reporting on one page with php, I just dont remember how to do this, if I remember correctly I could call some function in the begining of a php doc and tell it not to disply any errors that occur while parsing the doc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error disabling
Hi there, i use this line in my code. #error_reporting(E_ALL); // set to -- (E_ERROR) (E_WARNING) (E_PARSE) (E_NOTICE) (E_CORE_ERROR) (E_CORE_WARNING) (E_ALL) check out the docs: http://www.php.net/manual/en/function.error-reporting.php holger - Original Message - From: Davíð Örn Jóhannsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 04, 2002 12:51 PM Subject: [PHP] Error disabling I need to be able to disable error reporting on one page with php, I just don't remember how to do this, if I remember correctly I could call some function in the begining of a php doc and tell it not to disply any errors that occur while parsing the doc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php