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:[EMAIL PROTECTED]
Sent: Wednesday, August 25, 2004 4:38 PM
To: Afan Pasalic Cc: [EMAIL PROTECTED] 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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php