• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PHP's error reporting level

harrylmh

New Member
Hi,

I don't understand this function( error_reporting()). You're supposed to pass in an int level but how do I know what kind of levels are there?

eg.
/* ...in PHP 4, '55' would mean (E_ERROR | E_WARNING | E_PARSE |
E_CORE_ERROR | E_CORE_WARNING) */
is '55' calculated in some way by adding the constants?

Anyway, reporting 0 doesn't work all the time too. It'll still display parse errors. Is that the way it's supposed to be?

Thank you for your time
 
Last edited:
error_reporting(0);

that will get rid of most errors like undefined variable and undefined function. I don't think there is a way of getting around parse errors. That usually means there is an error in the scripts coding meaning that you have to fix the script before there is no parse error.
 
You cant get rid off from error like parse error cuz when there is a parse error the script cant be 100% compiled.
 
Back
Top