I'm trying to adapt my code to use different database password etc depending on the environment it runs in. For example, I have my dev server, the other developer has his and production env has yet another set of settings.
Since I have some Kohana projects as well, I chose to use the environmental variable KOHANA_ENV for the app to determine where it runs.
The problem is that in my WAMP server, while this works:
<?php echo getenv('REMOTE_ADDR'); ?>
, this doesn't (returns emptyness):
<?php echo getenv('KOHANA_ENV'); ?>
When I type set
in the Command Prompt, I see this:
KOHANA_ENV=devbox1
so it should work.