Page 1 of 1

globalize vs pass as argument

Posted: Sun Dec 14, 2003 12:19 pm
by Overunner
Well, the topic is pretty much my question. On the project I am working on I chose to set 'important variables' as session variables and the globalize them (global $HTTP_SESSTION_VARS;) so that they can be accessed within functions. However, I could also call the function and pass that variable as a argument. But my question is, which method do you prefer? Which is safer?

Posted: Sun Dec 14, 2003 9:33 pm
by DuFF
There was a discussion on this not too long ago. Check it out:
viewtopic.php?t=15177