Page 1 of 1

Using $GLOBALS

Posted: Mon Apr 03, 2006 6:36 am
by fastfingertips
Is it safe to use globals in an application. Can conduct to security leaks?

Posted: Mon Apr 03, 2006 8:23 am
by feyd
Using them blind is not, but as long as you always initialize them, it can be okay. Something you have to be careful of is accidental overrides of existing, in use, globals.

Posted: Mon Apr 03, 2006 8:24 am
by John Cartwright
we had this discussion a little ago :arrow: viewtopic.php?t=44813&highlight=globals+evil

Enjoy.