Posted by Duncan Hill on 09/26/68 11:34
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.
[Back to original message]
|