View Full Version : register globals
11-10-2006, 03:34 PM
register globals is "on" or "off"
11-13-2006, 04:58 AM
We have servers with registrar globals "on" and servers with registrar globals "off". If for example your account is located on a server with registrar globals "on" and you want it "off" (or vice versa), please contact our Help Desk and our support team will advise you how to proceed.
02-14-2007, 07:30 AM
Joomla reccomends that Register Globals should be off. What does register globals means and why is it on by default?
Thanks in Advance.
02-18-2007, 09:50 AM
The entire PHP development community recommends the register_globals to be off. They have created very good article that explains this decision.
It can be found here:
We, of course have been advised to switch off the register_globals directive, however, there are a lot of scripts, which are securely written, but require the register_globals to be on.
This is why we have allowed the global PHP setting to be overwritten. This can be done by creating a file named php.ini , with content of:
register_globals = ON
register_globals = OFF
The file must be placed in the folder along the files that it might affect. For example, if you have the following hierarchy:
and you place a php.ini in the folder, it will affect only phpfile1.php and phpfile2.php. To affect the files under directory1 and directory2, you should copy the file into each of them, using your favorite FTP client.
Hope this explanation will solve your issue. Let us know if it did not and if you have any additional inquiries :)