default error reporting php
Error Reporting Php No WarningsPHP Learn ASP Web Building Web Templates Web Statistics Web Certificates XML Learn XML Learn XSLT
Error Reporting Php Not WorkingLearn XPath Learn XQuery × HTML HTML Tag Reference HTML Event Reference HTML Color Reference HTML Attribute Reference HTML Canvas Reference HTML SVG Reference Google Maps
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings turn on error reporting php and policies of this site About Us Learn more about Stack Overflow turn on error reporting php mamp the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags display_errors php Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only http://www.w3schools.com/php/func_error_reporting.asp takes a minute: Sign up Showing all errors and warnings up vote 140 down vote favorite 33 UPDATE 2: I have now removed the following from the .php file: I have set display_erros in php.ini as follows: display_errors = On error reporting is set to the following in php.ini error_reporting = E_ALL | E_STRICT After http://stackoverflow.com/questions/5438060/showing-all-errors-and-warnings restarting apache, I still get no errors/warnings. UPDATE 1: I have changed error_reporting in php.ini from: error_reporting = E_ALL & ~E_DEPRECATED to error_reporting = E_ALL | E_STRICT After which I restarted apache, e.g. /etc/init.d/apache2 restart But the page will still not display errors/warnings of any kind. ORIGINAL QUESTION: The following script is generating an warning because the $err being inside the if statement. Why is this warning not being displayed on the php page in a web browser? I have to look at apache logs to see the warning. Also, if I delibarately change the "insert into" to "delete into", it does not display an error on the php page. Why are the errors not displaying on the actual php page?
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://stackoverflow.com/questions/16933606/error-reportinge-all-does-not-produce-error more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error_reporting(E_ALL) does not produce error up vote 24 down vote favorite error reporting 3 This is my php script- ' ;. $thisdoesnotexist); ?> Which obviously should show something if it were to be executed. All I see is an empty page. Why is error_reporting(E_ALL) not working? ' ;. $thisdoesnotexist); ?> Does not help either. All I get is an empty page. I've been to php.ini and set display_errors = error reporting php On and display_startup_errors = On. Nothing happens. php share|improve this question edited Jun 5 '13 at 7:20 asked Jun 5 '13 at 7:07 Samik Sengupta 56761333 How is display_errors setup? –PeeHaa Jun 5 '13 at 7:09 check display_errors setting –Roman Newaza Jun 5 '13 at 7:09 Does not help, as I've reflected in my question edit. –Samik Sengupta Jun 5 '13 at 7:11 You can check your syntax first by running php -l