Global variable problems between modules

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
danyblue
Forum Newbie
Posts: 5
Joined: Fri Feb 20, 2004 4:19 am

Global variable problems between modules

Post 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.
Post Reply