|
|
 |
Re: FN-FORUM: Full Referrer URL PHP
date posted 12th May 2008 17:44
Depends on the php release I WOULD IMAGINE?
----- Original Message -----
From: "Brendan Oliver" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, May 12, 2008 7:08 PM
Subject: RE: FN-FORUM: Full Referrer URL PHP
$REMOTE_ADDR
$HTTP_REFERER
$REQUEST_URI
$HTTP_HOST
$HTTP_USER_AGENT
arent these deprecated now?
as someone said before the referrer cannot be relied upon and can be
modified
$_SERVER['REMOTE_ADDR'];
$_SERVER['HTTP_REFERER'];
$_SERVER['REQUEST_URI'];
$_SERVER['HTTP_HOST'];
$_SERVER['HTTP_USER_AGENT'];
http://uk3.php.net/manual/en/reserved.variables.server.php for more info
Kind regards
Brendan Oliver
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] Behalf Of Richard
Cook
Sent: 12 May 2008 18:53
To: Brendan Oliver
Subject: Re: FN-FORUM: Full Referrer URL PHP
$REMOTE_ADDR
$HTTP_REFERER
$REQUEST_URI
$HTTP_HOST
$HTTP_USER_AGENT
Are what i use for stats and feed back i use these on an emailer script that
send me info when a user hits a page on my site ie:-
$time = date('l dS \of F Y h:i:s A');
$mail->Body = '
Referer Address : '.$HTTP_REFERER.'
Remote Address : '.$REMOTE_ADDR.'
Request URL Address : '.$HTTP_HOST.$REQUEST_URI.'
HTTP Host : '.$HTTP_HOST.'
HTTP User Agent : '.$HTTP_USER_AGENT.'
Time : '.$time.'';
Like the last email not sure what u need it for but this may be some use to
you?
Rick
www.cookra.co.uk
----- Original Message -----
From: "Darren Yates" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, May 12, 2008 6:28 PM
Subject: Re: FN-FORUM: Full Referrer URL PHP
>
> >What do you want to achieve by knowing the referrer URL?
>
> The referring site :)
> The keywords really.
>
> Darren
>
>
> Anthony Cartmell wrote:
>>
>>> Question how do I get it?
>>
>> You can't, reliably.
>>
>>> I've tried HTTP_REFERER which gives me the
>>> domain and the first variable value combination
>>> but nothing else and I've tried
>>> QUERY_STRING which just doesn't work and gives
>>> me nothing??
>>
>> HTTP_REFERER is the variable that some browsers will send with
>> information about the previous site visited. But internet security and
>> privacy software often blocks or spoofs that header, so it's most
>> unrealiable.
>>
>> QUERY_STRING will contain all the stuff after any question mark in the
>> URL, and only for the current page request, not the previous one.
>>
>> What do you want to achieve by knowing the referrer URL?
>>
>> Cheers!
>>
>> Anthony
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|