Obtain last url from visitor

Views: 4 Last modified: August 03rd, 2011 Comments: 0

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]
Rating: 0 (from 0 votes)

    Mail this!

    To: From:Sum {2+4} =  
    Anything to add ?

        You must be logged in to post a comment.