Apache Server configuration support - Problem grabbing $_SERVER['HTTP_REFERER'] in PHP5/Apache2

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2006 > Problem grabbing $_SERVER['HTTP_REFERER'] in PHP5/Apache2





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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

2006-02-26, 11:24 am

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com