Posted by Christopher Glaeser on 01/23/06 17:57
A PHP script that I am using has the following code:
<a href=http://<?=$_SERVER[HTTP_HOST]?>/item.php>
The $_SERVER reference should return http://www.mydomain.com/path/item.php
but instead returns http://www.mydomain/path/item.php. Notice that the .com
is missing. The server is a Linux Apache system. I checked the virtual
host configuration and it looks fine. Any ideas on what could be wrong?
Best,
Christopher
Navigation:
[Reply to this message]
|