Question

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

Was it helpful?

Solution

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

ini_set('display_errors', 1);

This will change ini settings runtime.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top