$_SERVER , print this variable and get the details regarding url.
$_SERVER[‘REQUEST_URI’] will provide the current page url
$_SERVER , print this variable and get the details regarding url.
$_SERVER[‘REQUEST_URI’] will provide the current page url