I want to check to see if my webpage was directly accessed or to see where it was linked from, but if I use this variable($_SERVER['HTTP_REFERER']) it gives me an error when it was directly accessed. I want to be able to either catch the error or check to see if it exsists first before I use it. How do I do it? Either one is fine.
Thanks,
Andy