Author |
Message |
Topic: server name on Windows XP |
dormant
Replies: 11
Views: 166949
|
|
Thanks for the help and info - I now understand what is going on. |
Topic: server name on Windows XP |
dormant
Replies: 11
Views: 166949
|
|
I am using php5, the version provided with the Abyss web server.
The script is very simple:
<html>
<title>
<?php
echo $_SERVER['SERVER_ADDR'];
echo ' - ';
echo $ ... |
Topic: server name on Windows XP |
dormant
Replies: 11
Views: 166949
|
|
I am accessing the webserver only over the LAN using the ip address or localhost, so no domain is involved, or any cloaking of any kind.
The machine has a name that is used in the Windows networkin ... |
Topic: server name on Windows XP |
dormant
Replies: 11
Views: 166949
|
|
My problem is that these variables do not return what they are meant to return.
$_SERVER['SERVER_NAME'] returns the IP address.
$_SERVER['HTTP_HOST'] returns an empty string
So my tentative c ... |
Topic: server name on Windows XP |
dormant
Replies: 11
Views: 166949
|
|
Thanks for the suggestion - that is exactly what I had been using with incorrect results.
I was misleading in my original post.
$_SERVER['SERVER_NAME'] returns the ip address of the machine.
$_ ... |
Topic: server name on Windows XP |
dormant
Replies: 11
Views: 166949
|
|
Where does Abyss/php pick up the server name in Windows XP? The machine I am using has a name and a workgroup as is normal for Windows XP.
When I run a php script, I get nothing back for $_SERVER[ ... |
|