Robot Butler
  Making those complicated tasks nice and easy.
  A hub for guides, walkthroughs and general information.
Follow us on Twitter RSS Feed
Article Image This guide assumes that your web hosting is running with the global setting inside Apache of AllowOverride All and that you are using mob_php for your PHP support (almost all servers with PHP support use this).

To enable full error reporting in PHP, the easiest thing to do is just add two lines of code to the top of the PHP file that you would like to report any issues (errors, warnings, notices, etc). Just place the following after the <?php start tag:

error_reporting(E_ALL); ini_set("display_errors", 1);

If you would like to enable PHP error reporting globally rather than on one specific page then you can do this via a .htaccess file placed in the root of your web hosting. The htaccess file would need to contain the following code:

php_flag display_errors 1 php_value error_reporting 214748364


No comments yet.

Post a Comment

    Email (not displayed)

The name of this website is Robot...      


  • 14 categories
  • 50 articles

Site, design and code by Benjamin Hodgetts.