How do I change register_globals for PHP??

beansbaxter

Verified User
Joined
Mar 17, 2004
Messages
218
Location
WA
On a Dedicated Server running Direct Admin 1.28.0, I need to change the PHP register_globals to off. It is installed with On as the default and I need to change it.

How can I do this??
 
Code:
vi /usr/local/lib/php.ini

or

Code:
pico -w /usr/local/lib/php.ini
 
Or if you want register_globals on in php.ini, you can make a .htaccess file for those sites you want it off.

Include this inside the .htaccess file:

php_flag register_globals off

Or edit the php.ini found in your /usr/local/lib/ directory, if you use standard paths for DA.
 
Back
Top