首頁  >  文章  >  後端開發  >  HTTP_REFERER 与 HTTP_USER_AGENT的使用方法_PHP教程

HTTP_REFERER 与 HTTP_USER_AGENT的使用方法_PHP教程

WBOY
WBOY原創
2016-07-20 11:02:42964瀏覽

 

            if (isset($_SERVER['HTTP_REFERER'])) {
                    print "The page you were on previously was {$_SERVER['HTTP_REFERER']}
";
            } else {
                    print "You didn't click any links to get here
";
            }
    ?>

    Click me!


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/445349.htmlTechArticleif (isset($_SERVER[HTTP_REFERER])) { print The page you were on previously was {$_SERVER[HTTP_REFERER]} ; } else { print You didnt click any links to get here ; } ? Click me!...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn