SyntaxFix
Write A Post
Hire A Developer
Questions
You want $_SERVER['REQUEST_URI']. From the docs:
$_SERVER['REQUEST_URI']
'REQUEST_URI' The URI which was given in order to access this page; for instance, '/index.html'.
'REQUEST_URI'
The URI which was given in order to access this page; for instance, '/index.html'.
'/index.html'