Hello, I am trying to get an environment variable to show up in $_ENV
in my codeigniter app. How do i do this?
views:
196answers:
4
A:
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().
Noah Goodrich
2009-11-17 13:49:54
A:
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
Chris Williams
2009-11-30 03:57:30