Regarding Register_Globals

Reply Mon 11 Jan, 2010 04:50 am
Hi there,
How to set register_globals on/off using ini.set?

text me the code to change the register_global settings..

Thank you in advance....

By Ars
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 1,426 • Replies: 3
No top replies

Robert Gentel
Reply Mon 11 Jan, 2010 02:22 pm
These settings can typically be set at the server level (for all php scripts running on the server) with the php.ini configuration file or at a directory level (using .htaccess files). Sometimes the latter is not possible, as there is a setting to disable such overriding of the core php settings.

To do it in .htaccess just add this line to the .htaccess file:

php_flag register_globals off

To change it in php.ini look for "register_globals" and change the value between 0 and 1.
0 Replies
Reply Wed 17 Feb, 2010 06:06 pm
Recommended practice is to leave / turn Register_Globals off. If your host has Register_Globals on I would recommend switching. If you are thinking about trying to enable it I would strongly recommend against it. Register_Globals disappears in PHP 6. If you are programming to use them you are going to have issues with forward compatibility.
Robert Gentel
Reply Wed 17 Feb, 2010 06:18 pm
Hear hear.
0 Replies

Related Topics

In How much time a website can be developed? - Question by aussiejumpingcastle
Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
  1. Forums
  2. » Regarding Register_Globals
Copyright © 2020 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 08/11/2020 at 09:54:07