php get current url with get parameters code example Example: php get url with get $full_url = 'http://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI];