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
.
Related posts:
- Little app to help you code 10+ times faster
Slobodan Kustrimovic
This author has yet to fill his BIO.
Did you absolutely LOVE this article... share it!
Comments
Leave your own!