title: php extracting complete url with variables
body: <p>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.</p>
  
  <p>example : www.site.com/?v1=xyz&amp;v2=123</p>
  
  <p>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.</p>
  
  <p>thank you </p>