Home arrow Our Main FAQ

How to turn register_globals off How to turn register_globals off

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


There at least 2 ways of doing this, and your web host will probably not support or give you access to them both :-) a good webhost would have already switched register_globals off for you.

- One way (most people cant do this)
If you have full access to your server you can locate your php.ini file and modify the value for register_globals = Off in the php.ini file, remember to restart apache afterwards.

-Another way (May work depending on the configuration of the server)
create, or edit any existing .htaccess file in the root of your webspace (in the same folder as Joomla's configuration.php)
Add the following line to the .htaccess and save, the change is instant:

php_flag register_globals off

- Securing Joomla Further
Edit the file /globals.php and change

define( 'RG_EMULATION', 1 );

to

define( 'RG_EMULATION', 0 );

These steps will secure you a bit more and are HIGHLY recommended!
Article is in the following categories:
KB » General



Leave A Comment

or close

Email This Article

or close

Existing Comments

There are currently no comments.

myNotes My Notes

You currently have no notes on this article. You can leave your own note on this page, the note can only be seen by you (and our administrators) but not other users.

You need to login first

Related Articles

The following articles may be related to this one:

  • No related Items

How to turn register_globals off Article Information

Hits:
6597
Created:
Wednesday, 16 August 2006
Author:
Joomla Components
Last Modified:
Monday, 29 November 1999
Access:
Public
Version:
1