How to get the current url in php

  • 0

$_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

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