$_SERVER[REQUEST_URI]
is syntactically incorrect, and AFAIK will not start when PHP5 is installed by default. The array index is a string, so it must be passed in rows. I know that PHP4 converted undefined constants to strings in square brackets, but this is still not a good practice.
EDIT: Well, if you do not define a constant named REQUEST_URI, which you do not have in your example script.
$_SERVER['REQUEST_URI']
is the standard method and what you should use.
$_SERVER["REQUEST_URI"]
also works and, although not mistaken, works a little more for the PHP interpreter, so if you do not need to parse it, variables should not be used. (and if you need to do this, you need to rethink that part of your program.
Macha
source share