I need to know what page a user made the request FROM ...
$_SERVER["REQUEST_URI"]
tells me what file the request is made to, however I want to know what file / page the user was on when the request was made.
I need to know what page a user made the request FROM ...
$_SERVER["REQUEST_URI"]
tells me what file the request is made to, however I want to know what file / page the user was on when the request was made.
Some Antivirus applications remove that referrer from the header, so it may be empty, then. You can not rely on that field.
You can't know where is the request come from, unless it have indicator as if you redirect to any website from Facebook it types in URL "?fbclid=..." as a "get" method so your website knows it comes from Facebook.