register global off

From: Date: Wed, 01 Sep 2004 17:37:07 +0000
Subject: register global off
Groups: php.general 
Request: Send a blank email to php-general+get-195428@lists.php.net to get a copy of this message
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 -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#195428) next »