In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Justin French) wrote:
> Am I missing something? I'm trying to use vars set in my config.php file in
> a function, and can't seem to do it without using $GLOBALS["varname"]
> Is there a way to make global vars available in each function, or is this
> just the way things go?
PHP scope rules are different from C and other languages; you must use the
'global' keyword. See
<http://www.php.net/manual/en/language.variables.scope.php> for more info.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php