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

HTTP_REFERER 与 HTTP_USER_AGENT的使用方法_PHP教程

WBOY
發布: 2016-07-20 11:02:42
原創
986 人瀏覽過

 

            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!...
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板