0
   

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,298 • Replies: 3
No top replies

 
Robert Gentel
 
  1  
Reply Mon 11 Jan, 2010 02:22 pm
@Aravindh,
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
 
iamthewinnar
 
  2  
Reply Wed 17 Feb, 2010 06:06 pm
@Aravindh,
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
 
  1  
Reply Wed 17 Feb, 2010 06:18 pm
@iamthewinnar,
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 © 2019 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 10/22/2019 at 10:35:13