title: getting current URL
body: <p>I am using following code to get the current URL</p>
  
  <pre><code>$current_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
  </code></pre>
  
  <p>Is there any other way to get the same, or may be better way to get current URL?</p>
  
  <p>Thanks.</p>