$url = $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; code example
Example: php get full url
$fullURL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$fullURL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];