how to get the uri in php code example Example: php get url with get $full_url = 'http://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI];