I have the following environment on one server:
- dev.domain.com for the development
- test.domain.com for the tests
- www.domain.com is the working production
For the development environment I would like to see all PHP errors (including parse errors). Unfortunately the PHP configuration is quite strict. It does not allow to set the display_errors within the PHP file. It means that
ini_set("display_errors", 1);
and all variants of it are not working. The following works fine within the .htassess file:
php_flag display_errors "1"
Thus, my idea was to do something like this:
if(HOST==dev.domain.com) {
php_flag display_errors "1"
}
I tried SetEnvIf, RewriteCond, IfDefine and other variants, but without success.
Is there somehow a way to do it?
display_errorsviaini_set()