Re: referrer: how to find out?

From: Date: Fri, 18 Aug 2000 09:15:49 +0000
Subject: Re: referrer: how to find out?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12440@lists.php.net to get a copy of this message
On Fri, 18 Aug 2000, Lucas K. Mathis wrote: > Is there any way to find out where people came from when they arrived > at my page? Specifically, I'd like to know where they clicked on when > they arrived at a dead page so I can either fix it (if it's on my > site) or tell the webmaster of the site with the dead link to fix it. > I've got an error page that comes up when somebody tries to access a > page that's not there. On this page, I'd like to have a short PHP > script that finds out where the person came from. you can use the environment variable $HTTP_REFERER. It is a standard CGI variable You might want to read up a bit on CGI: http://hoohoo.ncsa.uiuc.edu/cgi/interface.html On top of CGI variable, PHP also has a lot of other variable you can use... make a file called phpinfo.php and put the following in it: <html> <body> <?php print phpinfo();?> </body> </html> You can then see everything that your system/php has to offer you. Cheers, -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.jeremybrand.com/jeremy/brand/jeremy_brand.html for more __

« previous php.general (#12440) next »