php extracting complete url with variables
        Posted  
        
            by salmane
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by salmane
        
        
        
        Published on 2010-03-31T18:29:49Z
        Indexed on 
            2010/03/31
            18:33 UTC
        
        
        Read the original article
        Hit count: 223
        
php
Hi there, Using Php I would like to extract the current Url of a page including all variables attached to it. $_SERVER['PHP_SELF'] only return the url without the variable . any idea what function I need.
example : www.site.com/?v1=xyz&v2=123
using $_SERVER['PHP_SELF'] I get only : www.site.com as opposed to the whole url. using $_GET[] individually is not an opton since I am not sure what variable are attached to the URL.
thank you
© Stack Overflow or respective owner