how to check REMOTE_ADDR to see if it contains PART of an ip
| From: | Police Trainee | Date: | Wed, 16 Jan 2002 18:41:51 +0000 |
| Subject: | how to check REMOTE_ADDR to see if it contains PART of an ip | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-80785@lists.php.net to get a copy of this message | ||
hello. i am trying to write a simple php line that
checks the REMOTE_ADDR variable and see if it comes
from a specific netblock (to see if A.B.C is contained
in a REMOTE_ADDR of A.B.C.D) But how do i do this?
i know there is a php function that checks the string
for the presence of another one... any help please?
the php site is only helpful to me if i know which
function i wish to look up by name.
in a nutshell:
if ("150.200.250.x" is within
$REMOTE_ADDR){dowhatever}
thanks!
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/