Created
February 2, 2017 00:22
-
-
Save RareScrap/2cae4cf4a41665e769685c2937cd2dc8 to your computer and use it in GitHub Desktop.
Выдает Undefined index: HTTP_REFERER, если зайти на сайт напрямую. В случае перехода - выдает сайт вида "http://www.locallhost.com/" (перешел с locallhost)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$came_from = $_SERVER['HTTP_REFERER']; | |
echo $came_from; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment