SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe what you want is just plain old predefined variables.
Consider trying
$_SERVER['REQUEST_URI'']
Or read more here.