How to know where your visitors are coming from
Knowing where your visitors came from could be a really valuable information, and php allows us to get that information easily. This is how it’s done.
$cameFrom = $_SERVER['HTTP_REFERER'];
It’s that easy, the $cameFrom variable will hold the information about the url where the visitor came from.
Follow TutsValley on Twitter, or subscribe to the TutsValley RSS feed if you want .
- Little app to help you code 10+ times faster
- TutsValley Redesigned
Did you absolutely LOVE this article... share it!