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'
> 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
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
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
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
>> 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
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-
> 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
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
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
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
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
>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
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
>
> 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
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
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.
17 matches
Mail list logo