I am trying to set an environment variable in an .htaccess file and retrieve it in PHP. I\'ve looked through a bunch of other threads here on SO but everything I\'ve tried s
Assuming your configuration has AllowOverrides with .htaccess, you must enable mod_env in Apache for this to work.
Apache - mod_env