PHP display errors
Posted 10 October 2006 - 07:48 PM
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
is there any other reason why errors would not display?
Posted 10 October 2006 - 07:50 PM
if you dont tell it to show error if failed then it will not show anything.
Posted 10 October 2006 - 08:31 PM
Posted 10 October 2006 - 08:40 PM
Posted 11 October 2006 - 01:28 PM
<?php if($var == bla) echo "var is bla"; } ?>Obviously I have deliberatly leftout the opening curly bracket to force an error inbthe code. You should get an error like the following:
Parse error: parse error, unexpected '}' in path/to/your/file/here]on line 5
If you mean notice errors, which are not errors. You'll want to remove & ~E_NOTICE from the error_reporting directive in the php.ini
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users