php settings in .htaccess [SOLVED]

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

php settings in .htaccess [SOLVED]

Post 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.
Last edited by s.dot on Fri Apr 28, 2006 3:59 am, edited 1 time in total.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

ah, using php_value instead of php_flag seemed to do the trick.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply