RE: [PHP] $HTTP_SERVER_VARS[HTTP_PC_REMOTE_ADDR] returns no value

2003-10-29 Thread Wouter van Vliet
$_SERVER['REMOTE_ADDR'] 
$HTTP_SERVER_VARS['REMOTE_ADDR']

= what you want :P

-Original Message-
From: Randall Perry [mailto:[EMAIL PROTECTED] 
Sent: Wednesday 29 October 2003 15:54
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] $HTTP_SERVER_VARS[HTTP_PC_REMOTE_ADDR] returns no value

Want to grab the client IP after client agrees to a contract, but am getting
no value from the $HTTP_SERVER_VARS[HTTP_PC_REMOTE_ADDR] var.

Anyone know why this might happen?

--
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] $HTTP_SERVER_VARS not accessible in Functions

2002-07-22 Thread Jason Wong

On Monday 22 July 2002 13:46, Monty wrote:
 I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but,
 within a custom function() this array appears empty. In the calling script,
 however, the $HTTP_SERVER_VARS[] array is defined.

 I thought this was supposed to be superglobal and available on every
 level? If not, is there another command I can use? I also tried $_SERVER[]
 but this appears to be always empty no matter what level I call it on.

$HTTP_SERVER_VARS was never a superglobal. $_SERVER is a superglobal but only 
available on php 4.1.X or above. Read the docs for the details.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Unprovided with original learning, unformed in the habits of thinking,
unskilled in the arts of composition, I resolved to write a book.
-- Edward Gibbon
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] $HTTP_SERVER_VARS

2002-05-05 Thread Mike Gohlke

Kyle,
Here's a quote I found on Usenet:
http://groups.google.com/groups?selm=aec2ace8.0204180402.4c562696%40posting.google.comoutput=gplain

--- paste ---
I think I found out what this HTTP_WEFERER is all about...

I was working on a perl script having this problem. Some PCs (Client)
running that script returned a HTTP_WEFERER (my PC for example) and
some a correct HTTP_REFERER!

Changing OS, Provider, Browser... had no effect.

My last guess, was to turn off my Firewall (*Norton* Personal Firewall)
and after that my PC returned a correct HTTP_REFERER!

Seems to be the solution
--- end paste ---


Hope this helps,
Mike...

Kyle Gibson wrote:

 Whoops. It wont show unless you come from somewhere else...


 Go here and click the link:

 http://www.plaguenet.com/wreferer.php


 Thanks,


 Kyle Gibson








Re: [PHP] $HTTP_SERVER_VARS

2002-05-05 Thread Kyle Gibson

 My last guess, was to turn off my Firewall (*Norton* Personal Firewall)
 and after that my PC returned a correct HTTP_REFERER!


Exactly what I did. Funky, huh?


Thanks,

Kyle Gibson


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread John Holmes

Have you tried looking at a phpinfo() page and seeing what variables are
available?

Make a page with just the following line in it and load it up through
your web server.

?phpinfo()?

---John Holmes...

 -Original Message-
 From: Kyle Gibson [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 04, 2002 3:17 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] $HTTP_SERVER_VARS
 
 Heya folks,
 
 I've got a little problem here, maybe you can help me out.
 
 $HTTP_SERVER_VARS[HTTP_REFERER] is supposed to point to the
referring
 webpage, if it exists. As is $_SERVER[HTTP_REFERER] and
$HTTP_REFERER
 itself.
 
 However, it seems that I do not have this variable available on my
 server. I do however have this funky variable called HTTP_WREFERER
 which returns a strange string like value like below:
 
 VLMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJ
 
 I've searched PHP.net, and practically every PHP site on the Internet
 with no luck as to what this is supposed to represent. I've even tried
 to find out how I could enable the HTTP_REFERER variable, since it
 seems that it is disabled or something.
 
 I am guessing that WREFERER is some kind of encrypted version of
 HTTP_REFERER, but I don't know. It changes everytime, so it is hard to
 say.
 
 I'm running on PHP Version 4.0.6, if that helps.
 
 Thanks,
 
 Kyle Gibson
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson

 Have you tried looking at a phpinfo() page and seeing what variables are
 available?
 
 Make a page with just the following line in it and load it up through
 your web server.
 
 ?phpinfo()?


Yes. That is how I know of WREFERER. Do you know what it is?

If you want, you can look at my phpinfo page here:

http://php.plaguenet.com/MyAdmin/phpinfo.php.


Kyle Gibson




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] $HTTP_SERVER_VARS

2002-05-04 Thread Kyle Gibson

Whoops. It wont show unless you come from somewhere else...


Go here and click the link:

http://www.plaguenet.com/wreferer.php


Thanks,


Kyle Gibson



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Rasmus Lerdorf

Are you running PHP as a CGI?

On Mon, 22 Jan 2001, Todd Cary wrote:

 With Apache, $HTTP_SERVER_VARS only has the element, "PHP_SELF".  What
 am I missing in my Apache setup?

 Todd

 --
 Todd Cary
 Ariste Software
 [EMAIL PROTECTED]



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Romulo Roberto Pereira

He is on windows 98...

- Original Message - 
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Todd Cary [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, January 22, 2001 1:42 PM
Subject: Re: [PHP] $HTTP_SERVER_VARS has only 1 value


Are you running PHP as a CGI?

On Mon, 22 Jan 2001, Todd Cary wrote:

 With Apache, $HTTP_SERVER_VARS only has the element, "PHP_SELF".  What
 am I missing in my Apache setup?

 Todd

 --
 Todd Cary
 Ariste Software
 [EMAIL PROTECTED]



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Todd Cary

Ramus -

I discovered the problem, but not the solution:

When I am using IIS, the HTTP info is in $HTTP_SERVER_VARS; when I am
using Apache in the Win32, DOS window environment, the HTTP info is in
$HTTP_ENV_VARS.

Now the question is how do I determine which HTTP server I am using so I
can query the correct array?

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Teodor Cimpoesu

Hi Todd!
On Mon, 22 Jan 2001, Todd Cary wrote:

 Rasmus -
 
 I am running Apache on my notebook so that I can do some development
 while I am "on-the-road".  My code needs to obtain the URL and SERVER
 and I do this with $HTTP_SERVER_VARS.  However, under Apache (I use IIS
 on the Win 2K server and $HTTP_SERVER_VARS contains many items) I am
 only getting the PHP_SELF item.
 
Why don't you get them from environment?

$sn = getenv('SERVER_NAME');
$ru = getenv('REQUEST_URI'); or 'SCRIPT_NAME', depending on what you need.


-- teodor

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Todd Cary

Teo -

That works great for Apache but not for my ISAPI installation that is
using IIS on a Win 2K platform.  Is there a way to tell if I am using an
ISAPI server or not?  Otherwise I will put that in my parameter file.

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Teodor Cimpoesu

Hi Todd!
On Mon, 22 Jan 2001, Todd Cary wrote:

 Teo -
 
 That works great for Apache but not for my ISAPI installation that is
 using IIS on a Win 2K platform.  Is there a way to tell if I am using an
 ISAPI server or not?  Otherwise I will put that in my parameter file.
 
Yap, I think it's php_sapi_name(). [I get `cgi' for the CGI version, and 
`apache' for Apache module, so I guess you'll get `iis' for the iis one ]


-- teodor

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]