[PHP-WIN] Re:[PHP-WIN] HTTP Header REFERER

2001-02-27 Thread Erin's Fan Club
Hi: For me this code works on Win2k Pro running Apache and PHP v4.02pl2; Otherwise, you could get Javascript to pass the variable onto the request url passed to the PHP script. I think the syntax is nearly the same for Javascript so you would just need to tack it on to the request uri like...

Re: [PHP-WIN] HTTP Header REFERER

2001-02-26 Thread Ernest E Vogelsinger
You could try to create a listing of defined globals, something like "; while (list($key, $value) = each($GLOBALS)) echo "$key => $value\n"; echo ""; ?> and look how your webserver defines the HTTP_REFERER variable. Anyway, there are situations where NO referer variable is available. That's

Re: [PHP-WIN] HTTP Header REFERER

2001-02-26 Thread Gonzalo Vera
I think HTTP_REFERER works only for apache. To obtain values for HTTP header vars without apache, you could use HTTP_ENV_VARS["HTTP_REFERER"] as this is a php variable. Hope it works right, Gonzalo. > In apache, the variable: > HTTP_REFERER is automatically set. > I don't run apache, I tried

RE: [PHP-WIN] HTTP Header REFERER

2001-02-26 Thread Ignatius Teo
ot;].", ".getenv("HTTP_REFERER"); and see which one gets set/returned. Ignatius > -Original Message- > From: Randall Barber [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 27 February 2001 10:23 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN

[PHP-WIN] HTTP Header REFERER

2001-02-26 Thread Randall Barber
In apache, the variable: HTTP_REFERER is automatically set. I don't run apache, I tried to access the variable like this in a regular script: Other variations include: $HTTP_REFERER $HTTP_X_REFERER $myVar = getenv("HTTP_REFERER"); I don't get that variable. All the mail I found in the ar