In a custom project of mine, a function is fully dependent on $_SERVER['REQUEST_URI'] variable. Does it always return the same value on all server environments? (IIS, Apache, etc.)
Thanks.
In a custom project of mine, a function is fully dependent on $_SERVER['REQUEST_URI'] variable. Does it always return the same value on all server environments? (IIS, Apache, etc.)
Thanks.
It's supposed to.
I haven't done any empirical testing on it, but from the PHP manual page for $_SERVER:
'REQUEST_URI'
The URI which was given in order to access this page; for instance, '/index.html'.