Currently installed php version 5.3.10. It is not reporting any kind of errors like syntax error e.g.
<?php
define("variable" , 10);
variable++;
echo variable;
?>
This code has an error and browser should display it . But browser window is empty
Display error is off as I see in the information given by the phpinfo() in column php core.
I want it to be turned on.
If you want to enable it for all your php projects:
edit the
/etc/php5/apache2/php.ini
by opening a terminal and typing the following:search for the line.
and change
Off
toOn
If you want to enable it for a single website, in your website's
.htaccess
file add the following line:If you edited your
php.ini
file, a restart for apache is required for the settings to take effect, restart it with following line in a terminal.