pg.ddx.io pgsql-php@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Steven Lee <blindeagle@telocity.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Last URL
Date: Fri, 8 Nov 2002 09:27:44 -0700 (MST)
Message-ID: <Pine.LNX.4.33.0211080923450.10463-100000@css120.ihs.com> (raw)
In-Reply-To: <000401c286eb$026eaf40$0301060a@nnz01>
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']));
view thread (4+ messages)
Message-ID: <Pine.LNX.4.33.0211080923450.10463-100000@css120.ihs.com> Permalink: ../Pine.LNX.4.33.0211080923450.10463-100000@css120.ihs.com/ Also on: postgresql.org/message-id/Pine.LNX.4.33.0211080923450.10463-100000@css120.ihs.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-php@postgresql.org Cc: scott.marlowe@ihs.com, blindeagle@telocity.com Subject: Re: Last URL In-Reply-To: <Pine.LNX.4.33.0211080923450.10463-100000@css120.ihs.com> References: <000401c286eb$026eaf40$0301060a@nnz01> <Pine.LNX.4.33.0211080923450.10463-100000@css120.ihs.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox