Support - Knowledge base

Giving you the answers you need

Why not try our knowledge base for instant help and advice to enhance your online experience with Register365? From within the knowledge base you can browse our frequently asked questions and find the right answers to help solve your queries.

Home  >  Scripting  >  PHP (Hypertext Preprocessor)  >  View Article

Why are errors suppressed for PHP5?

4*4*4*4*4*

Article

Displaying error messages represents a security risk. Typically, the error message will contain information about your environment or scripts that should not be presented to an untrusted source.

If you do need to display errors on your page, you can use the following PHP code at the top of each file, however Namesco Limited recommend that a development environment is setup on your local machine to analyse the errors before you publish your code to the world.

The code to be used is as follows:

ob_start();
ini_set("display_errors","on");
ob_flush();

Rate This Article

How useful was this article?

Not useful A little useful Useful Very useful Everything I needed