This snippet will get the “referer” from your visitor. This means the last page or directory or URL he came from.
echo $_SERVER['HTTP_REFERER'];
This can return something like:
http://www.domain.com/snippets/java.php
VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.13_1145]
» Latest comments