note 44976 added to ref.network
| From: | pedro at momentus dot com dot br | Date: | Sun, 22 Aug 2004 01:54:46 +0000 |
| Subject: | note 44976 added to ref.network | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75078@lists.php.net to get a copy of this message | ||
isIPIn - routine
------------------
It's a good idea to test de ip/netmask, for error, otherwise the routine may 'allow'
access to improper clients.
list($net,$mask)=split("/",$k);
if(!$net or !$mask){
print "<br><h3>Error in declaring ip/mas: $k,
$v</h3><br>";
exit();
}
if (isIPIn($myip,$net,$mask)) {
echo $n[$k]."<br />\n";
}
----
Manual Page -- http://www.php.net/manual/en/ref.network.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44976
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44976&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44976&report=yes
Search -- http://master.php.net/manage/user-notes.php