PHP Register Globals

From Edgar BV Wiki
Revision as of 13:44, 29 October 2007 by Red (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>