note 106479 added to reserved.variables.globals

From: Date: Sat, 12 Nov 2011 17:10:02 +0000
Subject: note 106479 added to reserved.variables.globals
Groups: php.notes 
Request: Send a blank email to php-notes+get-184409@lists.php.net to get a copy of this message
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 ---- Server IP: 69.147.83.197 Probable Submitter: 87.56.174.26 ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.globals.php Edit -- https://master.php.net/note/edit/106479 Del: integrated -- https://master.php.net/note/delete/106479/integrated Del: useless -- https://master.php.net/note/delete/106479/useless Del: bad code -- https://master.php.net/note/delete/106479/bad+code Del: spam -- https://master.php.net/note/delete/106479/spam Del: non-english -- https://master.php.net/note/delete/106479/non-english Del: in docs -- https://master.php.net/note/delete/106479/in+docs Del: other reasons-- https://master.php.net/note/delete/106479 Reject -- https://master.php.net/note/reject/106479 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184409) next »