Disable PHP warning (Deprecated) messages

Avatar
  • Answered
I'm using 3rd party PHP scripts that are out of date and causing PHP to place warning (Deprecated) messages on my website (in this case mysql_connect() function ), messing up my HTML layout. Is there a way to disable the warnings?

The 3rd party has not updated their software and it will be a major undertaking for me to search and update their code.
Avatar
CaseyB
Hello, Thank you for your question about disabling PHP warning messages. You can do so by adding the text "error_reporting = E_ERROR" without the quotes to your PHP.ini file. More information about that can be found in our PHP error log article. Gratefully, CaseyB