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.

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

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

The Broward PHP Usergroup would like to thank the following sponsors.
  • South Florida Web Design

  • South Florida Maids

  • Miami Cleaning Service

  • Broward PHP Usergroup

  • Nationwide Real Estate Agent Directory

  • Fort Lauderdale Web Design

  • Real Estate Agent

  • Gourmet Flavored Coffee

  • convex optimization

  • convex optimization

  • Nationwide Bail Bonds Agent Directory

  • Fort Lauderdale Computer Repair

  • Broward County Computer Repair

  • dance music video

  • Miami Computer Repair