|
apache_getenv
Get an Apache subprocess_env variable
(PHP 4 >= 4.3.0, PHP 5)
Example 203. apache_getenv() example
The example above shows how to retrieve the value of the Apache
environment variable <?php The above example will output something similar to: 42.24.42.240 Code Examples / Notes » apache_getenvhela
Very easy but VERY cool to use: For an index.php that will be installed on many servers that are installed in a web without DNS, the page should point to the server itself and, for example for a cups-webinterface to port 631. So, let´s do it: <a href="/testdir/">testlink</a> <a href="http://<? echo apache_getenv("SERVER_ADDR"); ?>:631/">Cups Webinterface</a> Have a lot of fun . . . Hela |