I have a problem accessing a variable, the scenario is :
- In script A.php I set the variable $v.
- I include B.php (in B.php I have a class (c) that contains function f().)
- $v is defined as global in function f() and I can access it from within f() OK.
- After including B.php I call c->f() which in turn includes a further script (C.php)
- $v is not available in C.php
I cannot see why this should be the case.
Any ideas?
Richard.