getenv -- Gets the value of an environment variable, string getenv ( string varname ), Returns the value of the environment variable varname, or FALSE on an error.
1
<?php
2
//
Example use of getenv()
3
$ip= getenv('REMOTE_ADDR');
4
//
Or simply use a Superglobal ($_SERVER or $_ENV)