$_SERVER[HTTP_HOST] is missing .com

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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?


found it

I found where the script assigns $_SERVER.  

Site Timeline