Is there a way to conditionally execute php_flag statements in .htaccess? Here are two things I'm trying to do:
Turn error reporting on if the client's IP address matches the IP address I use:
if %{REMOTE_ADDR} == '12.34.56.78' then
php_flag error_reporting 1
else
php_flag error_reporting 0
Turn off register_globals
if the IP address matches mine, so that I can debug any issues caused by the code expecting this turned on.
if %{REMOTE_ADDR} == '12.34.56.78' then
php_flag register_globals on
else
php_flag register_globals on
Thanks for reading!