Enable display_errors For PHP
The web server by default do not have the display_errors turned on for PHP. This is due to the PHP engine by its default behaviour to display out the full physical path of the script that is having error in the error message output. This will cause the script is being exposed to the internet which may cause security threads.
Therefor, the display_errors is disabled.
For Windows
You may turn on the display error in your application by using the init_set() function which you may refer to the tutorials at php.net:
http://my2.php.net/manual/en/function.ini-set.php
For Linux
You may turn it on using either :
-
Using init_set() in the application OR
-
Alter the .htaccess file by include the following line:
php_value display_errors 1