[FX.php List] [OFF] Getting visitor's IP

Jonathan Schwartz jschwartz at exit445.com
Thu Aug 21 10:03:53 MDT 2008


Yeah, great.  Anyone seen my car keys lately?  That's the real 
challenge today. ;-)

J

At 10:52 AM -0500 8/21/08, Bob Patin wrote:
>Jonathan is so wise! :)
>
>You get the prize--all expenses paid trip to... wherever it is that 
>you are now!
>
>Thanks so much, this was driving me crazy.
>
>BP
>
>
>On Aug 21, 2008, at 10:47 AM, Jonathan Schwartz wrote:
>
>>Bob,
>>
>>Yup. I went down this path.
>>
>>Turns out that the PHP command is different depending 
>>on...err...the PHP version and/or platform?...I think.
>>
>>I believe the answer lies in what the phpinfo() says for the server 
>>being used.
>>
>>Bottom line, this one worked for me when the others didn't:
>>
>>$IP = $_SERVER['HTTP_PC_REMOTE_ADDR'];
>>
>>J
>
>_______________________________________________
>FX.php_List mailing list
>FX.php_List at mail.iviking.org
>http://www.iviking.org/mailman/listinfo/fx.php_list


-- 
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-370-5011


More information about the FX.php_List mailing list