How do I set environment variables in WAMP
codeigniter, php, wamp
Solution
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
Problem
I am trying to get an environment variable to show up in `$_ENV` in my codeigniter app. How do i do this?