Re: HTTP_SERVER_VARS not working. Please help
| From: | Erwin | Date: | Fri, 06 Sep 2002 10:06:18 +0000 |
| Subject: | Re: HTTP_SERVER_VARS not working. Please help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115423@lists.php.net to get a copy of this message | ||
Cirstoiu Aurel Sorin wrote:
> I tried to use $HTTP_SERVER_VARS['HTTP_HOST'] but the result is null.
> Is there an option so I can turn it on?
If PHP > 4.1.0:
try $_SERVER['HTTP_HOST'] instead. You can also set register_globals = On in
the php.ini file (not recommended!)
HTH
Erwin