note 44816 deleted from function.apache-getenv by felipe
| From: | felipe@php.net | Date: | Thu, 03 Jan 2008 02:15:53 +0000 |
| Subject: | note 44816 deleted from function.apache-getenv by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134706@lists.php.net to get a copy of this message | ||
Note Submitter: hela at helawann dot de
----
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><br>
<a href="http://<? echo
apache_getenv("SERVER_ADDR"); ?>:631/">Cups Webinterface</a><br>
Have a lot of fun . . .
Hela