note 106479 deleted from reserved.variables.globals by danbrown

From: Date: Tue, 15 Nov 2011 16:31:00 +0000
Subject: note 106479 deleted from reserved.variables.globals by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184482@lists.php.net to get a copy of this message
Note Submitter: my_mail_is_not_public at msp dot msp ---- I've worked with the $GLOBALS command a lot for the last few weeks, and it has been a pain in the ass. It caused a lot of errors and a lot of frustration but now I've might found the problem, and that is what I'm going to let all of you know. Keep in mind that if you like me use the $GLOBALS in a function that call another function $GLOBALS variable and then call it from another document, then you should know that it is local, and if you try to call the global then it wont work when you contact the function that should contact the $GLOBALS variable, to fix this, call the function later in the document and then you should just remember that the document with the functions should be required or included in the document that calls the functions. Note: It is very hard to understand and explain, but with the info I've given then you should have something to go for when you are trying your way out

« previous php.notes (#184482) next »