Forum Moderators: coopster

Message Too Old, No Replies

Turning off Register_Globals

         

ukgimp

12:50 pm on Jan 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



After scratching my head for a while baffled at why something would not work I stumbled across the use of super globals. I understand the concept and they sound like a good idea. However I cannot seem to be able to turn the register globals off in the php.ini. I set the tag to:

register_globals = Off

But when I run phpinfo() it still says ON?

This cant be an impossible situation. Any suggestions.

Cheers

ukgimp

12:58 pm on Jan 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about doing some reading UKGIMP and discovering that the ini file is only read once you start the server so changes wont occur until you restart it. :)

Sorry folks

toadhall

7:41 pm on Jan 17, 2003 (gmt 0)

10+ Year Member



hey ukgimp,

Have a look at ini_set() [php.net] and other ini related functions on the left menu of that page. Nice stuff if you don't want to change things permanently. Especially useful is get_ini() to check the current setting.

T