title: php how to find the location where a user came from?
body: <p>simple question:</p>
  
  <pre><code>how to find the location (url) where a user came from before accessing my page?
  </code></pre>
  
  <p>and</p>
  
  <pre><code>how to find the location (url) where a user goes after exiting my webpage?
  </code></pre>
  
  <p>any ideas where i should start?
  thanks</p>