Re: [PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-10-07 Thread Stut
Please keep the discussion on the list. On 7 Oct 2008, at 06:11, David Rocks wrote: Your work around worked fine for me but I just had some time to revisit this and wanted to see how hard it would be to rewrite this test. But I ran into a question. The test that was failing compared the

[PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-09-18 Thread David Rocks
I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1 for REMOTE_ADDR. Is this a PHP or a APACHE 2 thing? -- PHP

Re: [PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-09-18 Thread Stut
On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1 for REMOTE_ADDR. Is

Re: [PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-09-18 Thread Brady Mitchell
On Sep 17, 2008, at 957PM, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1 for REMOTE_ADDR.

Re: [PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-09-18 Thread David Rocks
Stut wrote: On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using APACHE 2. PHPINFO always returns ::1 for

Re: [PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-09-18 Thread Stut
On 18 Sep 2008, at 16:37, David Rocks wrote: Stut wrote: On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using

Re: [PHP] $_SERVER[REMOTE_ADDR] returning ::1

2008-09-18 Thread David Rocks
Stut wrote: On 18 Sep 2008, at 16:37, David Rocks wrote: Stut wrote: On 18 Sep 2008, at 05:57, David Rocks wrote: I am running a test PHP web app on my local machine that uses REMOTE_ADDR and most of the time ::1 is returned as the IP addr and sometimes it is 127.0.0.1 . I am on OS X