Monday, July 22, 2019

PHP does not display error messages

To turn on errors at the script level, include at the top of your script:


ini_set('display_errors', 1);
error_reporting(~0);

Alternatively, if it is not a production site and simply a development / testing site, you can turn on error reporting in php.ini. Search it for these settings:


error_reporting  =  E_ALL
;error_reporting = E_ERROR
display_errors = On
;display_errors = Off

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...