Re: [PHP] Environment Variables & Functions Incompatible???

2002-04-03 Thread Jason Wong
On Wednesday 03 April 2002 23:40, arti wrote: > Besides the fact that the different versions of PHP provide different > environment variables for determining the host, the isset() on the env > variable works differently inside a function. What is going on here? $HTTP_SERVER_VARS is only availa

Re: [PHP] Environment Variables & Functions Incompatible???

2002-04-03 Thread eric.coleman
2002 10:40 AM Subject: [PHP] Environment Variables & Functions Incompatible??? > I am running code on different versions of PHP, specifically 4.0.6 and > 4.1.2. For some reason, you have to use $HTTP_SERVER_VARS["HTTP_HOST"]) on > 4.0.6 and $_SERVER["HTTP_HOST"]

[PHP] Environment Variables & Functions Incompatible???

2002-04-03 Thread arti
I am running code on different versions of PHP, specifically 4.0.6 and 4.1.2. For some reason, you have to use $HTTP_SERVER_VARS["HTTP_HOST"]) on 4.0.6 and $_SERVER["HTTP_HOST"] on 4.1.2. I'm not sure who thought that breaking backward compatibility was a good idea, but let's ignore that for the