IPs comparing
| From: | Jesús Pérez | Date: | Wed, 27 Nov 2002 17:51:47 +0000 |
| Subject: | IPs comparing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-126316@lists.php.net to get a copy of this message | ||
Hi,
I have several subnets in my network and want to show different webs
depending on the subnet the user was.
I know how to get the IP but not how to compare two IPs numeracally, I mean:
If ((USER-IP > 192.168.0.1) && (USER-IP < 192.168.0.255))
Else if ((USER-IP > 192.168.1.1) && (USER-IP < 192.168.1.255))
...
What do you suggest me?
Thanks,
Tackel.