apache_getenv
(PHP 4 >= 4.3.0, PHP 5)
apache_getenv -- Get an Apache subprocess_env variable
Description
string
apache_getenv ( string variable [, bool walk_to_top])
apache_getenv() returns the value of the Apache
environment variable specified by variable, or
FALSE on failure.
Example 1. apache_getenv() example
<?php $ret = apache_getenv("SERVER_ADDR"); echo $ret; ?>
|
The example above shows how to retrieve the value of the Apache
environment variable "SERVER_ADDR".
|
See also apache_setenv().