title: Why is the http referer not showing?
body: <p>I'm using this code wanting to display the url used to access this page:</p>
  
  <pre><code>&lt;?php
  $referer = $_SERVER['HTTP_REFERER'];
  echo ($referer);
  ?&gt;
  </code></pre>
  
  <p>So when I've got this code in file index.php, put it onder www.mysite.com/index.php and I go to www.mysite.com, it should display 'www.mysite.com', shouldn't it?</p>
  
  <p>When I use it though is displays nothing. Not locally on Mamp and also not online. What am I doing wrong?</p>