Re: [PHP] REMOTE_ADDR

2005-03-14 Thread Rasmus Lerdorf
Richard Lynch wrote: I am running PHP 5 on a Apache platform (Mac) and I have just noticed that the log I keep of ip's entering my site, is showing the internal server ip instead of the external visitor ip. I am using getenv("REMOTE_ADDR") and is has been working before. Try $_SERVER['REMOTE_ADDR'

Re: [PHP] REMOTE_ADDR

2005-03-14 Thread Richard Lynch
> I am running PHP 5 on a Apache platform (Mac) and I have just noticed > that the log I keep of ip's entering my site, is showing the internal > server ip instead of the external visitor ip. > > I am using getenv("REMOTE_ADDR") and is has been working before. Try $_SERVER['REMOTE_ADDR'] instead o

[PHP] REMOTE_ADDR

2005-03-14 Thread Niels Riis Kristensen
Hi As a relative newbie I have a problem: I am running PHP 5 on a Apache platform (Mac) and I have just noticed that the log I keep of ip's entering my site, is showing the internal server ip instead of the external visitor ip. I am using getenv("REMOTE_ADDR") and is has been working before. Can

Re: [PHP] REMOTE_ADDR probs

2002-02-11 Thread cyberskydive
I will try to call with the other meythodds you suggested and see what happens. I may have not been really clear. on windows everythings working fine on solaris it logs the IP address as the users/visitors (on a nother page) but when using the code I included in my first post to check for a

Re: [PHP] REMOTE_ADDR probs

2002-02-11 Thread Michael Sims
At 09:41 AM 2/11/2002 -0600, cyberskydive wrote: >$user = getenv('REMOTE_ADDR'); [...] >It works great on windows running apache php 4.0.1 >but on solaris php 4.06 if I add a > >print($first); > >it returns the servers IP address, but everywhere else it returns the users >IP address. On the Solar

RE: [PHP] REMOTE_ADDR in requied files

2002-01-04 Thread Intruder
>> When I call function stored in another file, included with require >> command, variable $REMOTE_ADDR is empty in this function. How is that >> possible?? Thanks for help. function Funcname() { global $REMOTE_ADDR; ...funcbody... } -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] REMOTE_ADDR in requied files

2002-01-04 Thread Jan Muzik
When I call function stored in another file, included with require command, variable $REMOTE_ADDR is empty in this function. How is that possible?? Thanks for help. Jan Muzik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: [PHP] $REMOTE_ADDR subnet consistency?

2001-06-30 Thread Jason Murray
> BUT I WAS WONDERING, and now here comes my question, do the first > two subnets of an IP address (i.e. 204.57.x.x) typically stay the > same, so that they could be relied upon for general authenticity? In practice, I would say yes. However, theoretically, AOL may suddenly use switch your co

[PHP] $REMOTE_ADDR subnet consistency?

2001-06-30 Thread Nathan
Hi PHP heads,     I have question regarding $REMOTE_ADDRes consistency. I am developing a custom session library and I need a way to uniquely identify each http client. Hasn’t this has been a never-ending struggle for web developers? Anyways, I’m using the variables $HTTP_USER_AGEN

Re: [PHP] $REMOTE_ADDR error

2001-06-28 Thread Colin May
check the httpd's X_FORWARDED_FOR var using getenv or similiar... Quoting Christian Dechery (Wed, Jun 27, 2001 at 09:01:28AM -0300) > yeah... that's a possibility... > so there's no way I can see the user'ss IP? > > At 09:42 27/6/2001 +0100, Colin May wrote: > >Almost as if the request was prox

Re: [PHP] $REMOTE_ADDR error

2001-06-28 Thread Christian Dechery
t;Colin May" <[EMAIL PROTECTED]> >To: "Christian Dechery" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >Sent: Wednesday, June 27, 2001 10:42 AM >Subject: Re: [PHP] $REMOTE_ADDR error > > > > Almost as if the request was proxied or redirected from

Re: [PHP] $REMOTE_ADDR error

2001-06-28 Thread Christian Dechery
yeah... that's a possibility... so there's no way I can see the user'ss IP? At 09:42 27/6/2001 +0100, Colin May wrote: >Almost as if the request was proxied or redirected from the local machine >(127.0.0.1 is the local loop back ip) > >Quoting Christian Dechery (Tue, Jun 26, 2001 at 10:31:54PM -0

RE: [PHP] $REMOTE_ADDR error

2001-06-28 Thread Jason Lustig
>Also, if your web-server is on your machine, well, you always are 127.0.0.1 >when you surf... It depends on what you have your server set up as. If you have your server set up to listen to the IP 128.205.233.10 then $REMOTE_ADDR will return 128.205.233.10, even if it's on your machine... --Jaso

Re: [PHP] $REMOTE_ADDR error

2001-06-27 Thread Brave Cobra
ot;Colin May" <[EMAIL PROTECTED]> To: "Christian Dechery" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 27, 2001 10:42 AM Subject: Re: [PHP] $REMOTE_ADDR error > Almost as if the request was proxied or redirected from the local machine >

Re: [PHP] $REMOTE_ADDR error

2001-06-27 Thread Richard Lynch
> why do $REMOTE_ADDR always returns 127.0.0.1 no matter the user's IP who is > seeing the page? > > this doesn't look 'remote' to me... Maybe your web-server is not configured to give you REMOTE_ADDR. PHP pretty much just passes on whatever the web-server hands it. If you don't like what you a

Re: [PHP] $REMOTE_ADDR error

2001-06-27 Thread Colin May
Almost as if the request was proxied or redirected from the local machine (127.0.0.1 is the local loop back ip) Quoting Christian Dechery (Tue, Jun 26, 2001 at 10:31:54PM -0300) > why do $REMOTE_ADDR always returns 127.0.0.1 no matter the user's IP who is > seeing the page? > > this doesn't loo

[PHP] $REMOTE_ADDR error

2001-06-27 Thread Christian Dechery
why do $REMOTE_ADDR always returns 127.0.0.1 no matter the user's IP who is seeing the page? this doesn't look 'remote' to me... . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.