[CLUE-Tech] Apace/PHP Brain-Cramp on HTTP_REFERER?

Jed S. Baer thag at frii.com
Wed Apr 10 00:21:47 MDT 2002


On Tue, 09 Apr 2002 17:13:16 -0600
Garey Hoffman <ghoffman at sumaato.com> wrote:

> Yes, PHP and Apache are playing nice together ---- at least it is doing
> so on my installation of PHP 4.1.2 (I just checked it).
> 
> I was able to get the variable $HTTP_REFERER to come up using PHP 4.1.2 
> only when it was set. For instance, if I go to "test.php" directly, it 
> doesn't set $HTTP_REFERER (I turned register_globals On) in any of the 
> places you'd think you'd find it. I was able to get it to come up, as 
> expected, by writing a little HTML page that contained an href link to 
> "test.php". Once I clicked on the link and viewed the list of places
> that HTTP_REFERER is available, the information was in every single
> expected place.

A good thought. I tried this out - cut/pasted your code. No luck for me,
verified that register_globals on.

Just to be precise about what I got here:
  SERVER_SOFTWARE => Apache/1.3.22 (Unix) PHP/4.1.1

Warning: Undefined variable: HTTP_REFERER in
/home/jbaer/public_html/php/test.php on line 5 Warning: Undefined index:
HTTP_REFERER in /home/jbaer/public_html/php/test.php on line 8 Warning:
Undefined index: HTTP_REFERER in /home/jbaer/public_html/php/test.php on
line 11

I dunno. But thanks for the effort. Maybe I'll just have to get on
php-builder, or one of the mailing lists.

jed
-- 
Fight the CBDTPA: http://www.eff.org/alerts/20020322_eff_cbdtpa_alert.html

"Those who expect to reap the blessings of freedom must, like men,
 undergo the fatigue of supporting it." - Thomas Paine



More information about the clue-tech mailing list