How can I find the site the user came from before accessing mine in PHP?
Try the following:
$_SERVER['HTTP_REFERER']
For more information, see the HTTP referrer :
HTTP- - , HTTP- - , - , - ( URL, URI IRI i18n) , . , .
HTTP-:
echo $_SERVER['HTTP_REFERER'];
, Referer , :
, -, , : , Referer .
, URL-, , script.
PHP HTTP
@Andrew Hare , HTTP_REFERRER ( , HTTP-), , .
, , , header/server , :
, , , , , - , .
, , , .