萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> php編程 >> HTTP_REFERER 獲取用戶來路實例

HTTP_REFERER 獲取用戶來路實例

http_referer 獲取用戶來路實例
這是個php教程自來全局變量,所以我們不多介紹了,直接看實例

<?php
            if (isset($_server['http_referer'])) {
                    print "the page you were on previously was {$_server['http_referer']}<br />";
            } else {
                    print "you didn't click any links to get here<br />";
            }
    ?>

    <a href="refer.php">click me!</a>
 

copyright © 萬盛學電腦網 all rights reserved