|
|
 |
Re: FN-FORUM: Full Referrer URL PHP
date posted 12th May 2008 17:52
Sorry Brended didnt mean to be short there...;)
Having said that, if its the keywords from google etc, then it does work
most of the time, but as said awstats does a good job of it for you if your
running cpanel etc
This is the output we use ie from our emailer
We use it fro tracking new website developments on the SEO side of things
Heres an output of one of our emails:-
-----
Page : /version-9/go/folio/home.php
Referef Address :
http://www.google.co.uk/search?hl=en&q=empire+design+london&meta=
Remote Address : 82.198.250.71
Request URL Address :
www.cookra.co.uk/version-9/go/folio/home.php?folioLink=4&PHPSESSID=80eec8c
HTTP Host : www.cookra.co.uk
HTTP User Agent : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Time : Monday 12th of May 2008 02:53:57 PM
-----
Brenden is correct about the depricated code though, but not a biggy to
change...
----- 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
|
 |
|