PHP Register Globals

From Edgar BV Wiki
Jump to navigation Jump to search

In order to turn the php_flag register_globals off in apache there are a few ways to go about it:

1) Use a .htaccess file

In order for this to work, apache needs to be told that the .htaccess file in the directory is allowed to override the options

<Directory /where/the/site/is/>
   AllowOverride Options
</Directory>

(NB The path must not include any symbolic links).

Then in /where/the/site/is/.htaccess

either php_flag register_globals on

or

php_value register_globals 1


2) Configure a Directory operative in apache

<Directory /where/the/site/is/>
        php_flag register_globals on
</Directory>