Hello,
Bit of a newbie question I guess.
What is the best way, using php, to detect information about the referrer to
a page. Is this possible/difficult using PHP?
Thanks,
Tim Winters
Manager, Creative Development
Sampling Technologies Incorporated (STI)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
W:
--- Creative Solutions New Media <[EMAIL PROTECTED]> wrote:
> What is the best way, using php, to detect information about the
> referrer to a page.
echo $_SERVER['HTTP_REFERER'];
To see all of the information the Web server makes available to you, try this:
print_r($_SERVER);
Hope that helps.
PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] detecting referer
--- Creative Solutions New Media <[EMAIL PROTECTED]> wrote:
> What is the best way, using php, to detect information about the
> referrer to a page.
echo $_SERVER['HTTP_REFERER'];
To see all of the informatio
[snip]
What is the best way, using php, to detect information about the
referrer to
a page. Is this possible/difficult using PHP?
[/snip]
Please take the time to peruse the manual at
http://www.php.net/manual/en/reserved.variables.php and look at $_SERVER
variables.
Have a pleasant and productiv
You can get referrer information from the following:
$_SERVER['HTTP_REFERER']
This isn't foolproof though since the user can usually set in their
browser whether to have this information sent.
Cheers,
Rob.
On Thu, 2003-08-07 at 11:59, Creative Solutions New Media wrote:
> Hello,
>
> Bit of
5 matches
Mail list logo