php settings in .htaccess [SOLVED]
Posted: Fri Apr 28, 2006 3:52 am
My .htacces file is
I'm testing this piece of code against it.
And that doesn't show up when I go to page.php?value=xxx, so I assume the register_globals is being set to off. The other two I'm not so sure because it doesn't emit a notice about an undefined variable.
I've also tried using 'on/off' instead of the boolean values.
Using ini_set() displays the notice, but I'd like to avoid putting that in all my scripts. This is just a temporary setting, and I won't need the settings in the .htaccess until development is over.
Code: Select all
php_flag register_globals 0
php_flag display_errors 1
php_flag error_reporting 2047Code: Select all
echo 'The $_GET[\'value\'] value is '.$value;I've also tried using 'on/off' instead of the boolean values.
Using ini_set() displays the notice, but I'd like to avoid putting that in all my scripts. This is just a temporary setting, and I won't need the settings in the .htaccess until development is over.