How to check address a page is accessed from?
<p>I was wondering if it is possible to grab the URL from which a page is accessed? For example say if I have a file index.php. It can be accessed from virtually anywhere, depending on where I placed it. For example:</p>

<pre><code> - http://folder1/index.php
 - http://nicefolder1/index.php
</code></pre>

<p>Is there anyway I can find out where the page was accessed from? I'd like to perhaps parse that URL and if it was from nicefolder1, I'd like to do something like <code>echo "That was a good location to be executed from"</code> :D! Just something I was curious about ...</p>
