PHP 手冊
前一頁 |  | 下一頁

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

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

範例 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() and Superglobals.

前一頁 | 內容 | 下一頁
apache_get_version | 上一層 | apache_lookup_uri