OK, here's my problem.
I have a settings.php file which holds the important variables and a setup like that:
main.php
-settings.php
-top.php
--logo.php
--navigation.php
In main.php included (using require()): settings and top.
In top.php included:
logo and navigation
I declared all variables in settings.php to be global.
Whenever I try to use a variable from there in main.php or top.php it works. When I try to use it in logo.php or navigation.php it doesn't.
I did a var_dump($GLOBALS); in main.php, top.php and logo.php and the settings were only there in main.php and top.php. Somehow they get unset before the code in logo.php is run.
Help is greatly appreciated.
Thanks!
_till