Global variables are not working
Posted: Wed Nov 20, 2002 4:59 am
Hello All,
We have upgraded to php 4.2.2 version from a previous version.
In the old version we used getenv("HTTP_HOST") to find out the host name and it worked well. But after the upgrade it is not giving any result to us. At the same time i am able to get the result with $_SERVER["HTTP_HOST"]. As i could not change all the previous code, I would like to get the value using getenv("HTTP_HOST") it self.
Here are the list of params from my php.ini file
register_globals = On
variables_order = "EGPCS"
gpc_order = "GPC"
Can some body tell me what went wrong ?
Thanks,
Rajesh B.
We have upgraded to php 4.2.2 version from a previous version.
In the old version we used getenv("HTTP_HOST") to find out the host name and it worked well. But after the upgrade it is not giving any result to us. At the same time i am able to get the result with $_SERVER["HTTP_HOST"]. As i could not change all the previous code, I would like to get the value using getenv("HTTP_HOST") it self.
Here are the list of params from my php.ini file
register_globals = On
variables_order = "EGPCS"
gpc_order = "GPC"
Can some body tell me what went wrong ?
Thanks,
Rajesh B.