Page 1 of 1

Global variable problems between modules

Posted: Thu Jul 07, 2005 5:23 am
by danyblue
Hello,

i am porting my application CM2F, which bridges mail-based communication tools and phpbb, to the SMF (http://www.simplemachines.org) forum and i have come to a problem that i have not been able to solve in the last days.

Some global variables defined in one php file are not visible from other ones. For instance,

if I define a Database object in one initiation module, when i arrive to another php file it is not visible anymore, but it is from a second one.
Another case that i have, is, that if two global variables are defined, $A and $B, $A will be seen, and $B no.

I have tried everything i could remember, and i am running short on why is this happening.

Does anyone know a possible root causis ?

For the porting i am mixing different filesets.


Regards,
D.