What is the difference between $request_uri and $http_referer? Can I use either to find out where site vistitors are coming from? Will they give different results?
$request_uri gives you the URL user has got in their browser to access your page or site.
whereas $http_refferer gives you the previous URL from where the visitors came on to your site.