Here's a strange problem I've been having:
I have a config.php file with various configuration variables in it. I also have a file with various functions used on the site. When I use the 'global' keyword within one of those functions to call a variable within config.php, it does nothing and I can't access that variable. It looks something like this:
function myFunction($var) {
global $globalVar;
...
}
Is there a setting that I should have set to allow variables to be declared global this way? I've made sure the config.php file is included with a require_once statement and that seems to be working properly. I'm at a loss here.