You are here: Re: Unknown IP address? « PHP Programming Language « IT news, forums, messages
Re: Unknown IP address?

Posted by Janwillem Borleffs on 08/21/06 21:11

Steven Paul wrote:
> I'm using
>
> $ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
> $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
>
> to get a visitor's IP address, but every once in a while I get
> "unknown, unknown" instead of an address. Is there something I'm
> leaving out?
>

It's probable that your server environment uses another variable
(HTTP_CLIENT_IP for instance).

Examin the printout of the phpinfo() function to find the correct key.


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация