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.

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

Hosting by: hurra.com
Generated: 2007-01-26 17:56:38