Home Hosting Domains IT Services Support Contact Us
MyAccount PortalClient AreaAnnouncementsKnowledgebaseSupport TicketsDownloads

Knowledgebase
You are here: MyAccount Portal > Knowledgebase > PHP Configuration Assistance > How to Control display_errors and display_startup_errors with php.ini file

How to Control display_errors and display_startup_errors with php.ini file

These two settings control whether PHP should display errors in the browser or be silent. It is recommended that you turn these two settings Off during production so that you don't accidentally display sensitive information about your Web site.

This is especially true for dynamic Web sites that send usernames and passwords to access a database.

To use these functions, you are required to create your own php.ini file within the root directory of your website.

In your php.ini file, this configuration will look like:

display_errors = Off
display_startup_errors = Off

Of course, if you wish for these functions to be enabled, change the Off to On



Was this answer helpful?

Add to Favourites
Print this Article


Network Status Client Area Knowledgebase Datacentre  
 
Terms of ServicePrivacy PolicyCustomer Security