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:
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:
This always works for me: However, this doesn’t make PHP to show parse errors – the only way to show those errors is to modify your php.ini with this line: (if you don’t have access to php.ini, then putting this line in .htaccess might work too):