A href=https://?php echo $_SERVER['SERVER_ADDR']?/admin:1000admin
page/a
might work
you may want to try HTTP_HOST perhaps
see http://php.net/manual/en/reserved.variables.server.php for more info
On 03/23/2012 02:55 PM, Edwin Humphries wrote:
G'day all,
I'm not a programmer (I'm barely a Linux user) but I have a web server
that I need to make a quick and dirty change to.
It's a web-server to manage Internet Access for selected itinerant
users, and this part of it works fine. However, I'd like to provide a
link from the web interface to webmin running on the same server. Of
course, webmin uses HTTPS, not HTTP, and port 1000, and I could just
hard code the IP address into the HTML, but the IP address of the
network interface being used for this purpose (eth0) is going to
change from location to location, and I'd rather not have to make ad
hoc changes to the code on installation..
Is there a simple was that I can do this? (Apache runs custom code
written in PHP, but not by me)
Regards,
Edwin Humphries
Mobile: 0419 233 051
NetSense Computers (Ironstone Technology Pty Ltd)
79 Barney St (P. O. Box 423), Kiama, NSW, 2533
Phone: +61 (0)2 4233 2285
Fax: +61 (0)2 4233 2781
Web: http://www.netsensecomputers.com.au
--
This email is intended for the named addressee/s only and may contain
confidential or privileged information. If you are not a named
addressee please delete it and notify the sender.
--
/At every moment he beholdeth a wondrous world, a new creation, and
goeth from astonishment to astonishment, and is lost in awe at the
works of the Lord of Oneness./ Baha'u'llah, The Seven Valleys
./.. humans are interesting. With all the wonders there are in the
Universe, they invented boredom./ Terry Pratchet, Hogfather
/The most beautiful thing we can experience is the mysterious. It is
the source of all true art and all science. He to whom this emotion is
a stranger, who can no longer pause to wonder and stand rapt in awe,
is as good as dead: his eyes are closed./ Albert Einstein
/Stuff your eyes with wonder ... live as if you'd drop dead in ten
seconds. See the world. It's more fantastic than any dream made or
paid for in factories./ Ray Bradbury
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html