title: Get url of the page in php
body: <p>I am working on "Email this page" Popup page. I want to send url of base page as an email, but it should be a popup window.  </p>
  
  <p>I have used <code>HTTP_REFERER</code>, it is working fine on Firefox, but not working on Internet Explorer.</p>
  
  <p>I am getting the url of current page but I want that url in new popup window page.</p>
  
  <p>Is there any alternative than <code>HTTP_REFERER</code>.  </p>