note 44816 added to function.apache-getenv
| From: | hela at helawann dot de | Date: | Tue, 17 Aug 2004 14:09:48 +0000 |
| Subject: | note 44816 added to function.apache-getenv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79796@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.apache-getenv.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44816
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44816&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44816&report=yes
Search -- http://master.php.net/manage/user-notes.php