title: How to get localhost/foldername url in localhost
body: <p>I setup folder in localhost. I want to write a script to get that domain path but I've tried using</p>
  
  <pre><code>$_SERVER['SERVER_NAME'] 
  $_SERVER['HTTP_HOST'] 
  getenv('HTTP_HOST')
  </code></pre>
  
  <p>these all given <code>http://localhost</code> only , how could i get full path like <code>http://localhost/abc</code>
  (abc is a folder, in www directory)</p>