cant use HTTP_SERVER_VARS in servers.php

Atif Ghaffar aghaffar@developer.ch
Tue, 17 Apr 2001 15:36:07 +0200


Hi.
I get the following error in I use HTTP_SERVER_VARS in
horde/imp/config/servers.php
Warning: Undefined variable: HTTP_SERVER_VARS in
/u1/usr/apache/htdocs/horde/imp/config/servers.php on line 76
My servers.php has the following line.

'maildomain' => preg_replace("/(\w+)\.([\w\-]+)\.(\w+)\:*.*/",
"\\2.\\3", $HTTP_SERVER_VARS['SERVER_NAME']),

It used to work some time back but not any more.
Any thing I have to change to get this working again?

thanks for your help.


-- 
Atif Ghaffar
Internet Development Manager
4unet AG/SA/Ltd.
-------------------------.
        +41 21 351 53 60 ¦ voice
        +41 78 787 51 45 ¦ mobile
        +41 86 0796598972¦ fax
    http://www.4unet.net ¦ www
http://atif.developer.ch ¦ homepage
  atif.ghaffar@4unet.net ¦ email