That would turn off all errors. If you just want to hide the notices, set it to its default value. error_reporting(E_ALL ^ E_NOTICE); PHP: Although, you should design your application in a way that it doesn't show any errors or notices while error reporting is set to E_ALL.
You can just add a command to each function you call with the @ this will stop errors from being displayed. Something like, // function mysql_num_rows($query);// shows error @mysql_num_rows($query);// hides error Code (markup):
adding an @ works for function calls but you will still get the notices regarding undefined variables. As nico said .. error_reporting(E_ALL ^ E_NOTICE); Or if that doesnt work for you , you should set a php flag in .htaccess file to that effect.
that is correct, my apologies. what i actually wanted to say was that it is good practice for function calls but not variables.