Quote from: ZAP at Nov 20, 2006, 08:06 PM
If you get a 500 Server Error then you can’t add these directives there and you’ll need to use the php.ini method instead. In that case contact your host because not all of them allow for local php.ini files (and this method is somewhat more complicated than the .htaccess method because you need to set all PHP settings in this file - not just this one - or the rest revert to PHP defaults). It might be easiest in that case to ask your host to set that value for you in the master php.ini file for your account.
You know I just had to set register_globals to Off on a GoDaddy site, and I used php.ini because they don’t allow php_flags to be set in .htaccess (or at least it didn’t work the way I’m used to doing it; I think that perhaps it might have worked inside a virtual directory). Anyway I used a php.ini file instead, and I only added register_globals off to it. Contrary to my comment above, this did NOT reset all of the other PHP values to their defaults, and I did not have to place php.ini files in all directories (it was effective recursively).
So at least on this GoDaddy server, setting register_globals to off in a php.ini file was just as easy as via .htaccess.
This just goes to show that there’s always a way to turn this setting off, and that you should use the view PHP info link in the MODx System Reports screen to verify that the settings are correct after making the change.