PHP Tutorial : Check the referrer

Simple and short for today, but very popular and searched daily which means it will be usefull for you.
Here is the code to get a referrer with php

<?php
$ref = $_SERVER['HTTP_REFERER'];
print $ref;
?>
This entry was posted in Usefull PHP and tagged , , , , , . Bookmark the permalink.

2 Responses to PHP Tutorial : Check the referrer

  1. niitdebasis says:

    Dear crivion myself niitdebasis from Digital point did you remember me?i have asked you a question about the sql database and u solved that today i need you help again.i want to know something about the above given code could you please tell me how to use the above code in my site to know the referring visitor.i have tried it but i don’t know the correct procedure so please help me in this case.Waiting for your reply.
    Thank You.

  2. admin says:

    Hmm, Just place the code I gave upper in some page and you’ll see on the screen. Its a php code not asp

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>