[FX.php List] Capturing IP for a choice calc

Kevin Futter kfutter at sbc.melb.catholic.edu.au
Wed Mar 1 16:28:58 MST 2006


On 2/3/06 10:12 AM, "DC" <dan.cynosure at dbmscan.com> wrote:

> that's a new one to me! there's no mention of that server variable on
> PHP.net except for a bug report from 2003 that is marked as bogus. no
> wonder it caused you much head scratching...
> 
> i looked around google:
> http://www.google.com/search?q=%2BHTTP_PC_REMOTE_ADDR+%2Bphpinfo
> 
> and found that the server variable HTTP_PC_REMOTE_ADDR is only found on
> OSX sites running Apache 1.3x so it probably isn't a good idea to rely
> on this either. i didn't find a good explanation for its existence either.

Actually, its use is even more limited than that - it's confined to OS X
Tiger (10.4); Panther (10.3) behaves as normal. That's why I transfer the
Tiger variable into the normal PHP variable, for code portability between
platforms.

-- 
Kevin Futter
Webmaster, St. Bernard's College
http://www.sbc.melb.catholic.edu.au/





More information about the FX.php_List mailing list