Re: 1 ip address go here all others go here

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 13 December 2005 16:33, Dave Carrera wrote:
> $_SERVER['REMOTE_HOST']
>
> but i think i should of said how do i compare any address starting with
> 192.168.

REMOTE_HOST contains the resolved DNS name of an IP address.  This value is 
dependent on your web server doing DNS resolution (and most people configure 
it not to due to the speed impact).

REMOTE_ADDR contains the IP.

preg_match() probably does what you want.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux