note 126656 added to reserved.variables.environment

From: Date: Thu, 02 Dec 2021 14:17:49 +0000
Subject: note 126656 added to reserved.variables.environment
Groups: php.notes 
Request: Send a blank email to php-notes+get-217322@lists.php.net to get a copy of this message
When placing the environment variables in the httpd.conf file of my Apache server, I can access those variables by using getenv(). When I use $_ENV[] or $_SERVER[], they are not accessible. Inside my php.ini file, the variables-order property is configured with 'E' included; noted by other users. When placing the environment variables in the httpd-vhosts.conf file of my Apache server, I can access those variables by using getenv(), as well as $_SERVER[]. Using $_ENV[] still does not work for me. Calling getenv() before $_ENV[] didn't seem to work either. $_SERVER[] will remain as my solution. ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 24.157.52.146) ---- Manual Page -- https://php.net/manual/en/reserved.variables.environment.php Edit -- https://main.php.net/note/edit/126656 Del: integrated -- https://main.php.net/note/delete/126656/integrated Del: useless -- https://main.php.net/note/delete/126656/useless Del: bad code -- https://main.php.net/note/delete/126656/bad+code Del: spam -- https://main.php.net/note/delete/126656/spam Del: non-english -- https://main.php.net/note/delete/126656/non-english Del: in docs -- https://main.php.net/note/delete/126656/in+docs Del: other reasons-- https://main.php.net/note/delete/126656 Reject -- https://main.php.net/note/reject/126656 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217322) next »