Hi all
Im having a scope problem. My script is using severalinclude() calls, nested one in another. At some point, all of the variables/constants defined in an upper file, are not recognized in the included file.
so if I do something like this in file1.php:
$test="test";
include ("file2.php");
and then in file2.php in the first line its written:
echo $test;
I get a notice/warning about "Undefined variable".
note that it is STILL recognized AFTER the include is finished in file1.php. For some reason its not passed further down the include.
I guess its either a bug or some sort of php setting that needs to be corrected, since the same file that is included in someplace else, but not so deeply, and works fine.
Ill be happy to get some help.