You are here: $_SERVER[HTTP_HOST] is missing .com « PHP Programming Language « IT news, forums, messages
$_SERVER[HTTP_HOST] is missing .com

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация