Is there a way to set a custom variable such as environment_name in my apache vhost file that can be read via $_ENV or ini_get("environment_name")?
Is there a way to set a custom variable such as environment_name in my
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I know if you
in your .htaccess file that you’ll be able to
in your PHP script and/or program. If you can do it in .htacces, you can do it in your vhost configuration.
There’s also php functions to set your php ini values.
I’m not sure about a way to populate $ENV, or is SetEnv will do it. It’s worth investigating a var_dump($ENV) with the above.