Apache - Environment variables
Posted by: Humberto (---.linqtelecom.com.br)
Date: April 26, 2026 09:50PM

I intend to create an environment variable in Apache, like 'My_Variable', to retrieve it using `apache_getenv()` in PHP.

How can I create this variable?

Options: ReplyQuote
Re: Apache - Environment variables
Posted by: Otomatic (Moderator)
Date: April 27, 2026 09:28AM

To create a variable, use: apache_setenv

With Wampserver, there is absolutely no need for environment variables.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.