Just migrated to a new server, and its error reporting level for PHP is higher than the server we migrated from. It's showing warnings and notes about deprecated PHP.While obviously, the long term solution is to address the warnings, in the short term, I need to silence them from echoing from the server.I've tried editing /etc/php.ini and restarting apachedisplay_startup_errors = OffAlso tried adding it to the domain's root .htaccess file. Neither place seemed to do the trick:# supress php errorsphp_flag display_startup_errors offphp_flag display_errors offphp_flag html_errors offphp_value docref_root 0php_value docref_ext 0Hosting is with Media Temple (dv 4.0), if that matters.Do I need to change or create a php.ini somewhere else?
My php.ini configuration is being ignored - how can I override the error reporting level in my PHP scripts?
php;server;webserver;error;configuration
You can use the error_reporting function at the top of each file to get round the fact that your server doesn't seem to be obeying what you've configured.