> 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
> 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?
I suggest treating them as strings, and use (IF) equality/switch statements
to deliver the appropriate web...
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php