"get current url path in php " Code Answer


You want $_SERVER['REQUEST_URI']. From the docs:


The URI which was given in order to access this page; for instance, '/index.html'.

By johnbranchy-2d73e6463b8a on November 10 2022

Answers related to “get current url path in php ”

Only authorized users can answer the search term. Please sign in first, or register a free account.