PHP Manual: apache_getenv
apache_getenv
Description
string apache_getenv ( string variable [, bool walk_to_top] )
Get an Apache environment variable as specified by
variable.
This function requires Apache 2 otherwise it's undefined.
Parameters
variableThe Apache environment variable
walk_to_topWhether to get the top-level variable available to all Apache layers.