Turning off display of error messages in PHP

As an add-on to my previous post, here is one way where you can turn off the display of PHP error messages for individual scripts:

ini_set (‘display_errors’, 1);

Of course, you might prefer to just adjust the server settings, but this single line will definitely work for all cases in the event you do not have admin access to the server. You can also choose to make things easier by including all common settings in an include() file

Leave a Reply

Your email address will not be published. Required fields are marked *