Forum Moderators: coopster
the variable is defined in a lib like so
$MY_COOL_VAR = true;
then it is tested as such inside of a function
if($MY_COOL_VAR) echo 'watch me do something';
so both of these files are included by a 3rd scipt
during execution I can dump $GLOBALS and the variable is there with the correct value.
anyone have any thoughts on why it isn't imported into the variable table in the included script?
I can't say I've seen this, still plodding through code to look for anything odd
global $MY_COOL_VAR;
if($MY_COOL_VAR) echo 'watch me do something';
[edit]
too slow :)
I think it's because the joker before me included everything in every function, which I removed, everywhere
got me messed
so his whole application is based on a scope mismatch, how absolutely wonderful
makes my whole day
funny how playing with other people's junk gets you all messed up so easily
so is anyone else jealous of how many responses I got so quickly? don't be, that's how badly people like to show me up, hehe
simple software is sometimes the worst, so you repeat an error 100 times, no biggie, but when you repeat 5-10 errors in every function, it becomes a bit of a burden
at least it keeps me busy ;)