Page 1 of 1

php settings in .htaccess [SOLVED]

Posted: Fri Apr 28, 2006 3:52 am
by s.dot
My .htacces file is

Code: Select all

php_flag register_globals 0
php_flag display_errors 1
php_flag error_reporting 2047
I'm testing this piece of code against it.

Code: Select all

echo 'The $_GET[\'value\'] value is '.$value;
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.

Posted: Fri Apr 28, 2006 3:59 am
by s.dot
ah, using php_value instead of php_flag seemed to do the trick.