define variable in linux that can be access in php
- by sweb
I add a variable in whole linux varibale in /etc/profile
export MYNAME="My Value"
how can i access this value in php source code during run via apache web server?
in $_SERVER this value doesn't exist.
just this keys appear on $_ENV:
_ENV["APACHE_RUN_DIR"] /var/run/apache2
_ENV["APACHE_PID_FILE"] /var/run/apache2.pid
_ENV["PATH"] /usr/local/bin:/usr/bin:/bin
_ENV["APACHE_LOCK_DIR"] /var/lock/apache2
_ENV["LANG"] C
_ENV["APACHE_RUN_USER"] www-data
_ENV["APACHE_RUN_GROUP"] www-data
_ENV["APACHE_LOG_DIR"] /var/log/apache2
_ENV["PWD"] /