Tibor:
It's not a good idea to use $_ENV unless you are specifying an environmental variable. This is probably a better example that I found on another page in php.net
<?php function test() { $foo = "local variable";
echo '$foo in global scope: ' . $GLOBALS["foo"] . "n";
echo '$foo in current scope: ' . $foo . "n";
}
$foo = "Example content"; test(); ?>
Tibor > rocketmachine.com (06-Oct-2008 01:00)
You can use superglobals to make your variables available everywhere without declaring them global.