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

Bob Patin bob at patin.com
Thu Aug 21 09:52:02 MDT 2008


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



More information about the FX.php_List mailing list