How to display PHP compilation errors

It’s frustrating when PHP compilation errors are not shown during development. To make such compilation errors visible on the web pages, add this line in .htaccess:

php_value display_errors 1

Alternatively, if access to .htaccess is not allowed, this PHP code achieves the same result too:

ini_set(’display_errors’,1);

Leave a Reply