One way would be to not use variables in the config file in the first place (at least, not individual variables). Either use constants, or use a single variable, e.g. $CONFIG, as an array of 'config' values (which you could then use inside functions by bringing the $CONFIG variable into scope).
And of course, NogDog's suggestion in your other thread still applies - you could consider building an object instead that holds all of the config attributes.