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
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"]
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
3 matches
Mail list logo