Description Edit

apache_getenv gets an Apache environment variable as specified by variable.

Parameters Edit

{{{returns}}} apache getenv (string variable [, boolean walk_to_top])

Parameter Infos Edit

Parameter PHP Version Type
apache_getenv 4 >= 4.3.0 or 5 with Apache 2 returns string
variable 4 >= 4.3.0 or 5 with Apache 2 string

Whether to get the top-level variable available to all Apache layers.

4 >= 4.3.0 or 5 with Apache 2 boolean

Examples Edit

Example 1: Edit

 echo apache_getenv("SERVER_ADDR");

Output Edit

// Could be similar to this

See also Edit

apache_setenv, getenv

For more details on this function, visit its entry in the php manual.