|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » preg_match_all() » session_start() » htmlspecialchars() » ob_start() » ob_flush() » strstr() » flush() » strpos() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: apache_getenv (PHP 4 >= 4.3.0, PHP 5) apache_getenv -- Get an Apache subprocess_env variableDescriptionstring apache_getenv ( string variable [, bool walk_to_top] )Get an Apache environment variable as specified by variable . This function requires Apache 2 otherwise it's undefined. Parameters
variable The Apache environment variable walk_to_topWhether to get the top-level variable available to all Apache layers. Return ValuesThe value of the Apache environment variable on success, or FALSE on failure Examples
Example 1. apache_getenv() example The example above shows how to retrieve the value of the Apache environment variable SERVER_ADDR .
<?php
$ret = apache_getenv("SERVER_ADDR");
echo $ret;
?>
The above example will output something similar to: 42.24.42.240 Related Function(s) |