PHP and Web Technologies Freak
It is sometimes a good idea to find out where users can come from. When PHP is run the $_SERVER superglobal is always available and if the user has clicked on a link and landed on your page then the HTTP_REFERER value will be set. You can retrieve it like this.
if ( isset($_SERVER[ HTTP_REFERER ]) ) { echo $_SERVER['HTTP_REFERER']; }
Of course you might want to do something useful with this. For example, you might want to know what link a user clicked on when they broke your application.
Copyright © 2007 - Ersin Acar - is proudly powered by WordPress
Dilectio Theme is created by: Design Disease brought to you by Smashingmagazine.com
Leave a reply