From: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
---|---|
To: | Steven Lee <blindeagle(at)telocity(dot)com> |
Cc: | <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: Last URL |
Date: | 2002-11-08 16:27:44 |
Message-ID: | Pine.LNX.4.33.0211080923450.10463-100000@css120.ihs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
On Thu, 7 Nov 2002, Steven Lee wrote:
> Dear all:
>
> I try to write a logging page which can know how the users find my site.
> if by search engine or some banner switch, they must from another site
> (yahoo,xxx.com etc.)
> I try to find it in $HTTP_SERVER_VARS[], seems no, I am not sure.
> Is ther any Possible way that I can know what is the last URL before the
> user get into my site?
Others have mentioned $_server[], I'll just add that you can see all the
names of the vars you can grab by using either
phpinfo();
phpinfo gives up lots of various information. You can use different
constants with it. See http://www.php.net/manual/en/function.phpinfo.php
for more info.
or you can implode the array's keys to get a list like this:
print implode(":",array_keys($_server));
Just replace $_server with a different array and you can see what keys it
has. You can use the same trick on multi-dimensional arrays like so:
print implode(":",array_keys($_server['first_key']));
From | Date | Subject | |
---|---|---|---|
Next Message | Keary Suska | 2002-11-08 17:07:39 | Re: Problem with html select lists and postgres |
Previous Message | Carlos García Gómez | 2002-11-08 08:00:42 | Problem with html select lists and postgres |