473,789 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why isn't getenv("HTTP_RE FERRER") working?

Whenever I use this, it doesn't seem to return anything. Any idea what is
happening here? My webhost (ipowerweb) uses php 4.3.1.

-brian
Jul 17 '05 #1
8 5105
Hi there,

why don't you use $_SERVER[ 'HTTP_REFERRER'] ?

Jul 17 '05 #2
On Fri, 1 Apr 2005 19:56:04 -0500, "Brian Huether" <bh********@com castSPAM.net>
wrote:
Whenever I use this, it doesn't seem to return anything. Any idea what is
happening here? My webhost (ipowerweb) uses php 4.3.1.


Because the authors of the HTTP specification couldn't spell, and
unfortunately the typo is now so entrenched it'll never change.

http://www.w3.org/Protocols/rfc2616/....html#sec14.36

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #3
There is a typo in my post, but not in the code.

If I run phpinfo.php, I don't see http_referer as a variable anywhere. Could
that be the problem?

If so, what options do I have. This used to work! Right now it is not
working remotely or locally. I am running apache 1.33 locally and php 4.3.1.
This matches what my host (ipowerweb) is using.

thanks,

brian

"Andy Hassall" <an**@andyh.co. uk> wrote in message
news:6f******** *************** *********@4ax.c om...
On Fri, 1 Apr 2005 19:56:04 -0500, "Brian Huether"
<bh********@com castSPAM.net>
wrote:
Whenever I use this, it doesn't seem to return anything. Any idea what is
happening here? My webhost (ipowerweb) uses php 4.3.1.


Because the authors of the HTTP specification couldn't spell, and
unfortunately the typo is now so entrenched it'll never change.

http://www.w3.org/Protocols/rfc2616/....html#sec14.36

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

Jul 17 '05 #4
> "Andy Hassall" <an**@andyh.co. uk> wrote in message
news:6f******** *************** *********@4ax.c om...
On Fri, 1 Apr 2005 19:56:04 -0500, "Brian Huether"
<bh********@com castSPAM.net>
wrote:
Whenever I use this, it doesn't seem to return anything. Any idea what is
happening here? My webhost (ipowerweb) uses php 4.3.1.
Because the authors of the HTTP specification couldn't spell, and
unfortunately the typo is now so entrenched it'll never change.

http://www.w3.org/Protocols/rfc2616/....html#sec14.36


In article <pL************ ********@comcas t.com>,
"Brian Huether" <bh********@com castSPAM.net> wrote:
There is a typo in my post, but not in the code.

If I run phpinfo.php, I don't see http_referer as a variable anywhere. Could
that be the problem?

If so, what options do I have. This used to work! Right now it is not
working remotely or locally. I am running apache 1.33 locally and php 4.3.1.
This matches what my host (ipowerweb) is using.


Brian,

I have combined logging turned on in my httpd.conf file rather than the
default logging, which doesn't tracker referrals. Haven't tried seeing
if the server returns anything if I'm not logging referrals.

Also, a netiquette thing. don't top post (unless you just don't care and
_want_ to be ignored or flamed).

Primer on Usenet posting customs in news groups
http://members.fortunecity.com/nnqweb/nquote.html

Bottom vs. top posting and quotation style on Usenet
http://www.cs.tut.fi/~jkorpela/usenet/brox.html

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #5
Andy Hassall (an**@andyh.co. uk) wrote:

: Because the authors of the HTTP specification couldn't spell, and
: unfortunately the typo is now so entrenched it'll never change.

Maybe. I always suspect the misspelling is an "in" joke, since the data
is so untrustworthy it can't really be called the referrer at all.
--

This space not for rent.
Jul 17 '05 #6
Malcolm Dew-Jones wrote:

[about the spelling of HTTP Referer]
I always suspect the misspelling is an "in" joke,


You might not be far wrong. Here's the earliest mention I can find of
Referer in the HTTP WG mailing list:

http://lists.w3.org/Archives/Public/...yAug/0729.html

Note in particular Phill's remarks. Looks like he had an ulterior
motive when he proposed 'Referer' rather than 'Referrer'. I wonder if
he foresaw the brouhaha.

HAGW!

Jul 17 '05 #7

"Brian Huether" <bh********@com castSPAM.net> wrote in message
news:HN******** ************@co mcast.com...
Whenever I use this, it doesn't seem to return anything. Any idea what is
happening here? My webhost (ipowerweb) uses php 4.3.1.

-brian


Turns out that it was because of my Symantec Client Firewall's privacy
settings!

all is working now
Jul 17 '05 #8
Brian Huether wrote:
"Brian Huether" <bh********@com castSPAM.net> wrote in message
news:HN******** ************@co mcast.com...
Whenever I use this, it doesn't seem to return anything. Any idea
what is happening here? My webhost (ipowerweb) uses php 4.3.1.


Turns out that it was because of my Symantec Client Firewall's privacy
settings!


Which just goes to show you how you can never rely on this variable.
There are many other software applications which also block referral
information and in some browsers it's even a user defined setting.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
3051
by: Matthew Wilson | last post by:
Hi, we are getting a lot of spam through our PHP Feedback form, and have set up a new field 'prove you're human', asking them to do some simple maths. What is the command for the PHP script itself, to say "this field must be equal to 9 or return the error page"? Thanks! Matt
0
10408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.