Problem grabbing $_SERVER['HTTP_REFERER'] in PHP5/Apache2
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Problem grabbing $_SERVER['HTTP_REFERER'] in PHP5/Apache2




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problem grabbing $_SERVER['HTTP_REFERER'] in PHP5/Apache2  
TonyB


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-06 04:24 PM

I've seen several postings on this question but the solution isn't
jumping out at me.

I'm having trouble picking up the value of $_SERVER['HTTP_REFERER'] in
PHP pages running on a Windows configuration with the following version
numbers:

Apache 2.0.55 WIN
PHP 5.1.2

The statement: print "HTTP_REFERER=[" . $_SERVER['HTTP_REFERER'] .
"]<br>"; produces no output.

Also, output from phpinfo() contains no reference to HTTP_REFERER.

Other $_SERVER[] variables do work okay.  For example, the following
two values are produced by a print of $_SERVER['<attribute>']:

HTTP_HOST : localhost
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)

I figure there must be some configuration setting either in the apache
server or in the php environment which isn't properly set.  http.conf
and php.ini contain entries related to HTTP_REFERER, however, there's
nothing explicit regarding a setting that enables HTTP_REFERER.

Tony






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:13 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register