473,803 Members | 3,022 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 5106
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
3052
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
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10546
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
10310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10292
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7603
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
5627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2970
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.