Manual do PHP
Anterior |  | Próxima

# 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.

> Nota: apache_getenv() is only defined when using Apache 2.

Exemplo 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(), getenv(), e Superglobals.

Anterior | Principal | Próxima
apache_get_version | Acima | apache_lookup_uri