How do I set environment variables in WAMP
You can set an environment variable in a few different ways. Some (not all?) are:
- put them in .htaccess files
- specify on the command line
- specify them in your Apache config file like this:
Apache config:
SetEnv env_var_name env_var_value
Please note that when using putenv() the value will not be available in $_ENV, and you have to use getenv() to obtain the value.
Depending on exactly what you need to accomplish you probably need to look at using putenv() or if you want to change an apache environment variable, apache_setenv().