سؤال

In php.ini I have:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = On

If I have a php file with a syntax error in the root directory the error shows. If it is in a subdirectory, I see a blank page (as if display_errors=Off) I do see the errors in the error log.

How can I see the errors?

This is a hosted environment on bluehost.com and my php.ini file is located at /public_html/php.ini

هل كانت مفيدة؟

المحلول

Add this line at top of your config file or particular php file:

ini_set('display_errors', 1);

This will change ini settings runtime.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top