Remove warning messages in PHP
You really should fix whatever's causing the warning, but you can control visibility of errors with error_reporting()
. To skip warning messages, you could use something like:
error_reporting(E_ERROR | E_PARSE);
You can put an @ in front of your function call to suppress all error messages.
@yourFunctionHere();
To suppress warnings while leaving all other error reporting enabled:
error_reporting(E_ALL ^ E_WARNING);