Re: register global off
| From: | Ben Ramsey | Date: | Wed, 01 Sep 2004 17:44:31 +0000 |
| Subject: | Re: register global off | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195431@lists.php.net to get a copy of this message | ||
Actually, I think I read your message wrong... it should be:
php_flag register_globals Off
Ben Ramsey wrote:
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:-- 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: 0x3968B5EEMe 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 usingmore safeglobal off. My question though is how I can do it "locally", in myscript?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 notHOW. Make an .htaccess file: php_flag register_globals off