title: PHP Get URL with Parameter
body: <p>I want to get a URL and its parameters. Example:</p>
  
  <pre class="lang-none prettyprint-override"><code>www.someweb.com/somepage.php?id=10
  </code></pre>
  
  <p>How to get only <code>somepage.php?id=10</code>?</p>
  
  <p>I'm already tried <code>REQUEST_URI</code> and <code>PHP_SELF</code> but it only gives me <code>www.someweb.com/somepage.php</code> or <code>somepage.php</code>. What I want to is just the page name and its parameter(s).</p>