Re: register global off

From: Date: Wed, 01 Sep 2004 17:43:45 +0000
Subject: Re: register global off
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195430@lists.php.net to get a copy of this message
The Master value will remain On since it's On in php.ini and the Local value (the value for the directory in which phpinfo() is run) will be Off since that directory has an .htaccess file turning register_globals Off. If you want to affect all of your sites, change the setting in php.ini or in your global Apache httpd.conf file Afan Pasalic wrote:
Me again with same thing. I added to .htaccess php_flag register_globals off but it still doesn't work. When I list phpinfo() it shows me Master value for register_global: On On my local computer (localhost) it shows me Off. I need it to be Off. I tryed with: php_value register_globals 0 doesn't work either. What's a problem? Thanks to everybody Afan -----Original Message----- From: Greg Donald [mailto:greg.donald@nukote.com] Sent: Wednesday, August 25, 2004 4:38 PM To: Afan Pasalic Cc: php-general@lists.php.net Subject: RE: [PHP] crypt() On Wed, 2004-08-25 at 16:18, Afan Pasalic wrote: Hi everyone! My hosting company has global turned on. But I want to code using more safe global off. My question though is how I can do it "locally", in my script? I tried to use ini_set("register_globals", FALSE); > but it still doesn't work. On php.net manual I can find WHAT I have to do and reasons but not HOW. Make an .htaccess file: php_flag register_globals off
-- Regards, Ben Ramsey http://benramsey.com --------------------------------------------------- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. --------------------------------------------------- PGP Key ID: 0x3968B5EE

« previous php.general (#195430) next »