Re: 1 ip address go here all others go here

From: Date: Tue, 13 Dec 2005 16:49:28 +0000
Subject: Re: 1 ip address go here all others go here
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-227395@lists.php.net to get a copy of this message
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.

« previous php.general (#227395) next »