im working in php on suse11.0 my problem is when i type a wrong syntax or query it doesnt show error only blank page shown at this situtaion
thanks
You might to configure error_reporting (see also), and enable the displaying of errors (see display_errors or ini_set) -- at least on your development machine
In your php.ini file, you'd use
error_reporting = E_ALL | E_STRICT
display_errors = On
html_errors = On
Or, in your PHP code :
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 'On');
You might also want to install Xdebug on your development box, to get nice stacktraces wehn an error / exception occurs
Of course, on your production machine, you probably don't want to display errors ; so that will have to be configured depending on your environment ;-)
It is almost certainly the case that display_errors is disabled in php.ini.
This is a good thing on product servers, and makes development systems basically unusable.
For a development system you probably want to add one of these lines to you php.ini file:
error_reporting = E_ALL & ~E_NOTICE
or
error_reporting = E_ALL
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With